Skip to content

Commit

Permalink
fix module naming in go.mod (#68)
Browse files Browse the repository at this point in the history
The module name needs to start with a url, usually of the
service that hosts the repo. Otherwise it can't be fetched without
adding replace directives in users' go.mod files, for example:

go get: github.com/bshuster-repo/[email protected] updating to
github.com/bshuster-repo/[email protected]: parsing go.mod:
module declares its path as: bshuster-repo/logrus-logstash-hook
       but was required as: github.com/bshuster-repo/logrus-logstash-hook
  • Loading branch information
rski authored Jun 14, 2021
1 parent 6a1a972 commit 963df90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module bshuster-repo/logrus-logstash-hook
module github.com/bshuster-repo/logrus-logstash-hook

go 1.16

Expand Down

0 comments on commit 963df90

Please sign in to comment.