-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix broken links by removing module name from github links #171
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #171 +/- ##
==========================================
+ Coverage 81.16% 81.31% +0.14%
==========================================
Files 1 1
Lines 154 182 +28
==========================================
+ Hits 125 148 +23
- Misses 20 24 +4
- Partials 9 10 +1 |
94be43b
to
6c09cf4
Compare
97cce0f
to
1dfaeb3
Compare
1dfaeb3
to
e702c70
Compare
Hi @saschagrunert! We are running into an issue with some of the links generated from this tool. Let me know if it's okay for this fix to be included in the tool! |
e702c70
to
c9642ab
Compare
c9642ab
to
25be389
Compare
@@ -12,7 +12,6 @@ linters: | |||
- containedctx | |||
- contextcheck | |||
- decorder | |||
- depguard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what's up with depguard, but I had to update golangci for go 1.21
and it marked every import as not allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ok, lgtm
@@ -9,7 +9,7 @@ stdenv: &stdenv | |||
executors: | |||
container: | |||
docker: | |||
- image: cimg/go:1.20 | |||
- image: cimg/go:1.21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating to go 1.21 so I can use the slices
package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -12,7 +12,6 @@ linters: | |||
- containedctx | |||
- contextcheck | |||
- decorder | |||
- depguard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ok, lgtm
@@ -89,6 +88,7 @@ linters: | |||
- whitespace | |||
- wrapcheck | |||
# - cyclop | |||
# - depguard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this from the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Created v1.3.4 for that |
There is an issue with some of the links generated using the
-l
flag. Some dependencies erroneously include the module name in the GitHub link. This PR adds some logic to trim the end of the link if it includes the module name.How to reproduce bug:
Notice how some links look like this
https://github.com/cespare/xxhash/v2/compare/v2.1.2...v2.2.0
and lead to a 404 page when it should be thishttps://github.com/cespare/xxhash/compare/v2.1.2...v2.2.0
.