Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep ensure doesn't always seem to ensure that lock file holds all deps #1471

Closed
@rogpeppe

Description

@rogpeppe

What version of dep are you using (dep version)?

v0.3.2-161-ga926781

What dep command did you run?

dep ensure -no-vendor

What did you expect to see?

I expected to see the Gopkg.lock updated to the latest compatible version for all dependencies, and that it would have an entry for all dependencies that are in the project.

What did you see instead?

% dep ensure -v -no-vendor
Gopkg.lock was already in sync with imports and Gopkg.toml
% find . -name '*.go' | xargs grep bakery.v2
./config/config.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./config/config_test.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./internal/server/common_test.go:	"gopkg.in/macaroon-bakery.v2/httpbakery"
./internal/server/error.go:	"gopkg.in/macaroon-bakery.v2/httpbakery"
./internal/server/server_test.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./internal/server/server.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./internal/server/server.go:	"gopkg.in/macaroon-bakery.v2/httpbakery"
./internal/server/auth.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./internal/server/auth.go:	"gopkg.in/macaroon-bakery.v2/bakery/identchecker"
./internal/server/auth.go:	"gopkg.in/macaroon-bakery.v2/httpbakery"
./internal/store/store.go:	"gopkg.in/macaroon-bakery.v2/bakery"
./internal/store/store.go:	"gopkg.in/macaroon-bakery.v2/bakery/postgresrootkeystore"
./cmd/azure-ua/main.go:	"gopkg.in/macaroon-bakery.v2/bakery"
% grep bakery Gopkg.lock
% grep bakery Gopkg.toml
  name = "gopkg.in/macaroon-bakery.v2"
% ed Gopkg.toml
1678
$-3,$p

[[constraint]]
  branch = "v2"
  name = "gopkg.in/macaroon-bakery.v2"
q
%

In case it makes a difference, I had accidentally run dep ensure previously (forgetting to use the -no-vendor flag), and then manually did rm -r vendor to remove the unwanted vendor directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions