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

go.mod: Clarify retractions #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

go.mod: Clarify retractions #17

wants to merge 1 commit into from

Conversation

ffrank
Copy link

@ffrank ffrank commented Sep 8, 2024

Add a comment to go.mod that is placed according to the go.mod specification to give some background to the retraction of older releases. Also make the text more clear to explain what happened.

The 2.0.0 version is removed from the list, as it was leading to an error e.g. from go mod tidy:

go.mod:24:2: retract github.com/tredoe/osutil: version "v2.0.0" invalid: should be v0 or v1, not v2

I made this after looking for an issue with a downstream project that pulls this one as a dependency broke after this. People got a bit worried that something nefarious may have happened here (I did check for clues of malicious code hidden here now, in fact). The new wording will hopefully ease the mind of people hitting this problem in the future. (This can still hit downstreams that don't update and build their modules frequently.)

Add a comment to go.mod that is placed according to the go.mod
specification to give some background to the retraction of older
releases. Also make the text more clear to explain what happened.

The 2.0.0 version is removed from the list, as it was leading to an
error e.g. from go mod tidy:

    go.mod:24:2: retract github.com/tredoe/osutil: version "v2.0.0" invalid: should be v0 or v1, not v2
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