This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 18 Jun, 2020 1 commit
    • Seth Hoenig's avatar
      deps: remove tidy from dev makefile target · 37835d64
      Seth Hoenig authored
      With Go modules, `go mod tidy` supplants `vendorfmt`. Unfortunately,
      `tidy` will try to reach out to the network and download modules, and
      there is no way to disable that behavior (e.g. the -mod=vendor) option
      does not apply. This means we cannot use the `tidy` target in nomad
      enterprise, which will be unable to reach private repositories like
      consul-enterprise.
      
      This isn't a big deal, since `vendorfmt` served the purpose of rewriting
      the output of `govendor`, wheras `tidy` is a part of the `sync` target
      that is required to be run when modifying dependencies anyway.
      37835d64
  2. 04 Jun, 2020 1 commit
  3. 03 Jun, 2020 1 commit
  4. 02 Jun, 2020 1 commit
    • Seth Hoenig's avatar
      deps: Switch to Go modules for dependency management · 15fb4c99
      Seth Hoenig authored
      This PR switches the Nomad repository from using govendor to Go modules
      for managing dependencies. Aspects of the Nomad workflow remain pretty
      much the same. The usual Makefile targets should continue to work as
      they always did. The API submodule simply defers to the parent Nomad
      version on the repository, keeping the semantics of API versioning that
      currently exists.
      15fb4c99
  5. 24 May, 2020 1 commit
    • Seth Hoenig's avatar
      build: use hashicorp hclfmt · 051e387d
      Seth Hoenig authored
      We have been using fatih/hclfmt which is long abandoned. Instead, switch
      to HashiCorp's own hclfmt implementation. There are some trivial changes in
      behavior around whitespace.
      051e387d
  6. 15 May, 2020 1 commit
  7. 13 May, 2020 1 commit
  8. 28 Apr, 2020 1 commit
  9. 24 Apr, 2020 1 commit
    • Seth Hoenig's avatar
      demo: create a demo service for grpc healthchecks · 47dceed3
      Seth Hoenig authored
      Examples for HTTP based task-group service healthchecks are
      covered by the `countdash` demo, but gRPC checks currently
      have no runnable examples.
      
      This PR adds a trivial gRPC enabled application that provides
      a Service implementing the standard gRPC healthcheck interface.
      47dceed3
  10. 23 Apr, 2020 2 commits
  11. 08 Apr, 2020 1 commit
    • Mahmood Ali's avatar
      go mod for go-bindata · c3abb334
      Mahmood Ali authored
      Use go mod for github.com/hashicorp/go-bindata/go-bindata and
      github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs but use
      `@master` to pull the latest master.  These packages don't have release
      tags so `@master` worksaround it.
      c3abb334
  12. 07 Apr, 2020 2 commits
  13. 01 Apr, 2020 1 commit
  14. 31 Mar, 2020 1 commit
    • Mahmood Ali's avatar
      dev: use go mod to install dev dependencies · 10b9ad4d
      Mahmood Ali authored
      This allows using https download and go mod cache proxies, over using
      git and downloading entire dependencies git history, hopefully,
      resulting into a faster installation process.
      10b9ad4d
  15. 12 Mar, 2020 1 commit
  16. 09 Mar, 2020 1 commit
  17. 03 Mar, 2020 2 commits
  18. 06 Feb, 2020 1 commit
  19. 03 Feb, 2020 1 commit
  20. 14 Jan, 2020 2 commits
  21. 10 Jan, 2020 1 commit
  22. 06 Dec, 2019 2 commits
    • Seth Hoenig's avatar
      spellcheck: add misspell to linter dependencies · d8d85c82
      Seth Hoenig authored
      You'd think since golangci-lint embeds misspell we could use that,
      but it fails to run if it finds no Go source files, which is the
      case in our website/ directory that we want to check.
      d8d85c82
    • Danielle Lancashire's avatar
      chore: Switch from gometalinter to golangci-lint · 8bb27f7e
      Danielle Lancashire authored
      gometalinter has been deprecated, with golangci-lint as its spiritual
      and recommended successor. Here we switch to using it with an equivalent
      configuration, albeit with newer versions of some linters.
      
      To maintain compatibility with existing settings, we have a couple of
      things disabled here, specifically:
      
      - tests
              We have a lot of unused code in our tests that choke deadcode.
              We should attempt to clean these up soon so that we can lint our
              testcode.
      - govet.check-shadowing = false
              This breaks on redefining `err` which we do all over the nomad
              codebase.
      8bb27f7e
  23. 12 Nov, 2019 2 commits
  24. 11 Oct, 2019 1 commit
  25. 06 Sep, 2019 2 commits
    • Mahmood Ali's avatar
      fix typo · 9852b8e0
      Mahmood Ali authored
      Co-Authored-By: default avatarDanielle <dani@hashicorp.com>
      9852b8e0
    • Mahmood Ali's avatar
      dev: avoid codecgen code in downstream projects · 3a517614
      Mahmood Ali authored
      This is an attempt to ease dependency management for external driver
      plugins, by avoiding requiring them to compile ugorji/go generated
      files.  Plugin developers reported some pain with the brittleness of
      ugorji/go dependency in particular, specially when using go mod, the
      default go mod manager in golang 1.13.
      
      Context
      --------
      
      Nomad uses msgpack to persist and serialize internal structs, using
      ugorji/go library.  As an optimization, we use ugorji/go code generation
      to speedup process and aovid the relection-based slow path.
      
      We commit these generated files in repository when we cut and tag the
      release to ease reproducability and debugging old releases.  Thus,
      downstream projects that depend on release tag, indirectly depends on
      ugorji/go generated code.
      
      Sadly, the generated code is brittle and specific to the version of
      ugorji/go being used.  When go mod picks another version of ugorji/go
      then nomad (go mod by default uses release according to semver),
      d...
      3a517614
  26. 03 Sep, 2019 2 commits
  27. 30 Aug, 2019 1 commit
  28. 24 Aug, 2019 2 commits
    • Mahmood Ali's avatar
      use circleci/golang images directly · b6bf83ad
      Mahmood Ali authored
      We currently use an container image for `test-devices` job only; while
      all other jobs use machine executor.
      
      This allows us to switch golang and protoc verions easily without
      manually managing Docker images (which requires building them manually
      on a dev machines, etc).  All that while, we install dependencies on
      every build in all other jobs..
      
      `test-devices` now is one of the fastest jobs and isn't a constraint or
      a bottleneck, so increasing its overhead by few seconds doesn't hurt the
      overall developer iteration.
      
      If we split tests effectively later, we can revisit.
      b6bf83ad
    • Mahmood Ali's avatar
      use a new image with proper protoc dependency · f4571cb9
      Mahmood Ali authored
      Fixes `test-devices` job
      f4571cb9
  29. 23 Aug, 2019 1 commit
  30. 14 Aug, 2019 1 commit
  31. 13 Aug, 2019 1 commit