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

add configuration for custom pkg names #5

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

lukaszx0
Copy link
Contributor

@lukaszx0 lukaszx0 commented Feb 3, 2021

When not using fully qualified url package names (eg mod foobar instead of mod github.com/foo/bar), the code that strips the package from the path strips too much of it.

This change leaves the default behavior unchanged (stripping github.com/owner/repo) and adds ability to configure custom package name to make path stripping work correctly with custom module names.

@lukaszx0
Copy link
Contributor Author

lukaszx0 commented Feb 3, 2021

Actually, it's called module in go mod, eg:

module foobar

go 1.15

so we can rename it to module-name

@guyarb guyarb merged commit 48645c3 into guyarb:master Feb 8, 2021
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.

2 participants