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

Broken module version management #65

Closed
elivlo opened this issue Nov 19, 2020 · 12 comments
Closed

Broken module version management #65

elivlo opened this issue Nov 19, 2020 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@elivlo
Copy link
Collaborator

elivlo commented Nov 19, 2020

Hi, I recently had many issues with go complaining about checksum mismatches when trying to "go get" this module with version v2 or greater.

I think I found the issue:
Go got the checksum mismatch because v2.0.0 does not contain a go.mod file and then got "incompatible"
https://stackoverflow.com/questions/57355929/what-does-incompatible-in-go-mod-mean-will-it-cause-harm

So I ask you to set the tag v2.0.0 to a commit where the go.mod is correct.
You may set tag v2.0.0 to the same commit as v2.0.1.

@ziehmon
Copy link

ziehmon commented Nov 23, 2020

Confirming the issue, seems that the v2.0.0 tag is set to the same commit as v1.0.0 is which must be wrong:

5b56187 (HEAD -> master, origin/master, origin/HEAD) Feature/run scan with progress sync function (#60)
3b6d4c8 (tag: v2.0.2) modify test dependency to /v2, update doc badge (#58)
2d0165c (tag: v2.0.1) Update go module to current version (v2.0.0) (#56)
8d64c8e Create go module (#55)
19c88ce Fix multiple with port calls (#52)
36b6e94 Feature add scan options after creation (#51)
227aaf3 Added error type and enhanced the error checking (#45)
bdc60e5 Update readme for updated scanner.run interface (#41)
55097e9 (tag: v2.0.0, tag: v1.0.0) Fix ScanRunner interface (#40)

@Ullaakut
Copy link
Owner

Hey! Thanks for reporting this. It's wrong indeed, I'll remove the v2 tag and remake it on the commit 8d64c8e. Does it sound good to you? If I understand the issue correctly, that should fix the problem.

@Ullaakut Ullaakut self-assigned this Nov 23, 2020
@Ullaakut Ullaakut added the bug Something isn't working label Nov 23, 2020
@elivlo
Copy link
Collaborator Author

elivlo commented Nov 23, 2020

Hey! Thanks for reporting this. It's wrong indeed, I'll remove the v2 tag and remake it on the commit 8d64c8e. Does it sound good to you? If I understand the issue correctly, that should fix the problem.

Unfortunately a v2.* go module must have set the /v2 path in the go.mod file, so I think commit 2d0165c should be the right one.
If you do not want to point two tags to the same commit I suggest to set:

  • 2d0165c -> v2.0.0
  • 3b6d4c8 -> v2.0.1
  • 5b56187 -> v2.0.2

Let's hope that go's sum database will accept these changes. :-)

@ziehmon
Copy link

ziehmon commented Nov 25, 2020

Unfortunately a v2.* go module must have set the /v2 path in the go.mod file, so I think commit 2d0165c should be the right one.

Confirming this should work! 👍

However, in this case there wouldn't be a real change between v2.0.0 and v2.0.1, so you might completely ditch v2.0.2 and set v2.0.1 to commit 5b56187 which is the actual minor change @elivlo introduced (seen from actual code changes), while keeping v2.0.0 with 2d0165c as already suggested.

But this is a non-technical proposal seen from a semver and code-changes and not Go Module compatibility point-of-view.

@Ullaakut
Copy link
Owner

Ullaakut commented Nov 26, 2020

Should be good now, can you confirm? :)

$> git push --tags -f
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:Ullaakut/nmap.git
 + 55097e9...2d0165c v2.0.0 -> v2.0.0 (forced update)
 + 2d0165c...3b6d4c8 v2.0.1 -> v2.0.1 (forced update)
 + 3b6d4c8...55097e9 v2.0.2 -> v2.0.2 (forced update)

@elivlo
Copy link
Collaborator Author

elivlo commented Nov 26, 2020

You accidently set this to the wrong commit, needs to be:

@Ullaakut
Copy link
Owner

Oh right nice catch, my bad! The tag should work now!

@elivlo
Copy link
Collaborator Author

elivlo commented Nov 26, 2020

Did you publish?

@Ullaakut
Copy link
Owner

The tags have been pushed yes, it should be enough for the go module to work, no?

@elivlo
Copy link
Collaborator Author

elivlo commented Nov 26, 2020

I cloned it but tag v2.0.2 still has the wrong commit:

commit 55097e94556ea667f5b89b6dc25dc81856d2c527 (tag: v2.0.2, tag: v1.0.0)
Author: Brendan Le Glaunec <brendan.le-glaunec@epitech.eu>
Date:   Sat Nov 30 16:41:46 2019 +0100

    Fix ScanRunner interface (#40)

@Ullaakut
Copy link
Owner

Alright this time should be the one. Turns out I hadn't pulled so I didn't have that commit and did not notice it errored 😅

@elivlo
Copy link
Collaborator Author

elivlo commented Dec 1, 2020

No problem. The Issue should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants