Skip to content

mod: Update Nomad Go module to github.com/hashicorp/nomad/v2#27916

Draft
jrasell wants to merge 3 commits into
mainfrom
f-update-nomad-go-mod-v2
Draft

mod: Update Nomad Go module to github.com/hashicorp/nomad/v2#27916
jrasell wants to merge 3 commits into
mainfrom
f-update-nomad-go-mod-v2

Conversation

@jrasell
Copy link
Copy Markdown
Member

@jrasell jrasell commented May 7, 2026

The last Nomad release was tagged with v2.0.0. While Nomad's core
is not designed to be directly imported, it happens. Go's module
constraints requires a module with a tagged 2.x to have a module
suffix of /v2; the same for 3.x and such.

This change modifies the Nomad module to have the v2 suffix and
updates all imports as such.

Contributor Checklist

  • Changelog Entry If this PR changes user-facing behavior, please generate and add a
    changelog entry using the make cl command.
  • Testing Please add tests to cover any new functionality or to demonstrate bug fixes and
    ensure regressions will be caught.
  • Documentation If the change impacts user-facing functionality such as the CLI, API, UI,
    and job configuration, please update the Nomad product documentation, which is stored in the
    web-unified-docs repo. Refer to the web-unified-docs contributor guide for docs guidelines.
    Please also consider whether the change requires notes within the upgrade
    guide
    . If you would like help with the docs, tag the nomad-docs team in this PR.

Reviewer Checklist

  • Backport Labels Please add the correct backport labels as described by the internal
    backporting document.
  • Commit Type Ensure the correct merge method is selected which should be "squash and merge"
    in the majority of situations. The main exceptions are long-lived feature branches or merges where
    history should be preserved.
  • Enterprise PRs If this is an enterprise only PR, please add any required changelog entry
    within the public repository.

jrasell added 2 commits May 8, 2026 08:04
The last Nomad release was tagged with v2.0.0. While Nomad's core
is not designed to be directly imported, it happens. Go's module
constraints requires a module with a tagged 2.x to have a module
suffix of /v2; the same for 3.x and such.

This change modifies the Nomad module to have the v2 suffix and
updates all imports as such.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant