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.

Lock mismatch immediately after dep init #917

@carolynvs

Description

@carolynvs

What version of Go (go version) and dep (git describe --tags) are you using?

$ go version
go version go1.8.3 darwin/amd64

$ git describe --tags
v0.1.0-295-gd558b52

What dep command did you run?

dep init && dep status

What did you expect to see?

I expected that after a fresh init and no changes, that the lock would be valid.

What did you see instead?

Lock inputs-digest mismatch. This happens when Gopkg.toml is modified.
Run `dep ensure` to regenerate the inputs-digest.

I believe the problem is that when we run dep init, it detects external tools and sets the analyzer name to dep+import. When dep ensure is run, it doesn't use any importers so the analyzer name is just dep, immediately triggering a lock mis-match.

We will eventually run the analyzers during ensure, #821. Once we have that in place and both init and ensure use the importers, the hash won't mismatch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions