-
Notifications
You must be signed in to change notification settings - Fork 9
Fixed package names to allow importing module from external sources #8
base: master
Are you sure you want to change the base?
Conversation
Hi @theFido, thanks for the PR, and sorry for breaking that. Is there a reason to drop I'm perfectly ok with changing the name back to |
@schwartzmx I tried to keep the |
right @elfido I was just thinking on changing the |
@schwartzmx I tried that too but my IDE linter flags it as an invalid module name and that's mostly why I though it might work better to fix everything following go standards now :) |
I just don't know if anyone is already using this as https://github.com/schwartzmx/gremgo-neptune - that's my only concern. Otherwise I'm all for making it more standard |
Yeah, I understand. I mean, for modules I doubt is working for anyone, we tried multiple combinations and nothing seemed to work. But I think you are right and it would break projects using dep or vendor folders. Do you have any idea of how can we make it work for everyone? I tested renaming the package by itself as you suggested but doesn't seem to be working for me. So, I don't see a solution where it just works for all the dependency management approaches. |
@@ -1,4 +1,4 @@ | |||
module gremgo | |||
module github.com/schwartzmx/gremgo |
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.
@elfido should we just be able to change the module path in go.mod
to the full url, as described here, https://github.com/golang/go/wiki/Modules#gomod
module github.com/schwartzmx/gremgo-neptune
?
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.
can we try that and I can make another release?
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.
Will give a try, thanks. I'll keep you posted
Hi @schwartzmx, you might want to consider the approach nats streaming client took. They renamed their project but also created an archived project with the previous name with an updated README pointing to the new name. Archived (old name): https://github.com/nats-io/go-nats-streaming |
If you would like a name other than gremgo and something that's unique, my suggestion would be gremtune :) |
I like that gremtune name |
@elfido @kmhagan I renamed and moved the project to https://github.com/schwartzmx/gremtune, and I'm going to archive this repository (gremgo-neptune). Please file an issue there if something still is not right. Also if you have any contributions please feel free to open a PR. Thanks! |
This change is required to allow other projects to import this module. Without it, importing results in a "unexpected module path 'gremgo'" exception during build. Additionally, it would be required to drop the "-neptune" suffix in the name of the repo or it will mismatch the actual package name.