Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swarmd: remove /v2/ from module path #3173

Merged
merged 1 commit into from
Apr 15, 2024

Commits on Mar 20, 2024

  1. swarmd: remove /v2/ from module path

    The module path for swarmd is not valid for the location of the swarmd
    module within the swarmkit repo. The go command resolves package paths
    to the swarmkit/v2 module and fails when the packages don't exist.
    
        $ go run github.com/moby/swarmkit/v2/swarmd/cmd/swarm-rafttool@master
        go: github.com/moby/swarmkit/v2/swarmd/cmd/swarm-rafttool@master: module github.com/moby/swarmkit/v2@master found (v2.0.0-20240227173239-911c97650f2e), but does not contain package github.com/moby/swarmkit/v2/swarmd/cmd/swarm-rafttool
    
    (This is only a problem when swarmd is not the main module.)
    
    Fix the swarmd module's path to align with the module source location so
    that `go run` can once again be used to invoke swarm-rafttool and the
    other commands.
    
    Signed-off-by: Cory Snider <csnider@mirantis.com>
    corhere committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    906172e View commit details
    Browse the repository at this point in the history