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.

it's hard to know what to do when inputs-digest in Gopkg.lock conflicts #1224

Closed
@glasser

Description

@glasser

Basically every change to Gopkg.lock updates the solve-metadata.inputs-digest field. That means that whenever you're merging two changes that touch Gopkg.lock you're going to get a merge conflict.

It's not the end of the world, but it would be nice if there was more guidance for what to do when this happens. I assume the answer is basically just "resolve the conflict randomly, run dep ensure again" but I'm a little paranoid, like, what if choosing the wrong digest in my resolution means that dep ensure won't work (either crashing or incorrectly assuming that it doesn't have to do work due to a cache)? Maybe this is safe now but might get worse when some of the in-progress caching work for dep is done?

I think it would be great if the docs answered the question of what to do if you get an inputs-digest conflict. It would be even better if the file was self-documenting, with a comment above the inputs-digest line explaining how to resolve merge conflicts; I guess go-toml doesn't support adding comments, though I guess you could just add an otherwise ignored field whose value is effectively a comment.

Experienced with dep v0.3.1.

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