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

Make this into a go module #1

Open
msageryd opened this issue Aug 13, 2024 · 3 comments
Open

Make this into a go module #1

msageryd opened this issue Aug 13, 2024 · 3 comments

Comments

@msageryd
Copy link

Thank you for this. It's of course usable by getting it directly from your GH using the commit hash as version. But it would be even better if it where a real go module with version number so it's easier to update.

I just updated to the latest version to get your MIT license.
go get github.com/drgrib/alfred@dc4eb4f

As of now there is no way to run go get github.com/drgrib/alfred@v1 since the module is not "published"

@drgrib
Copy link
Owner

drgrib commented Aug 13, 2024

Thanks. I'm actually not aware of how to do that. This is the first importable Go package I've made with some demand. Could you make a pull request to turn this into a proper module or tell me how if that isn't possible?

@msageryd
Copy link
Author

msageryd commented Aug 13, 2024

Haha, this will be interesting. I'm completely new to Go myself =)

I'm using my Go-virtuoso-little-brother as proxy. Aparently the module will be autmatically listed at go.pkg.dev if it has a module file with a name.

You should be able to create this with go mod init github.com/drgrib/alfred
Same goes for go mod init github.com/drgrib/mac

I can make a PR if you want, but I think it should be this simple. When the module has a name it will be automatically indexed at go.pkg.dev as soon as it is downloaded by someone.

@drgrib
Copy link
Owner

drgrib commented Aug 13, 2024

Thanks for the breakdown. I'll take a look a this when I get a chance.

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

No branches or pull requests

2 participants