drgrib / alfred

A fast, simple way to make Alfred workflow script filters in Go
32 stars 4 forks source link

Make this into a go module #1

Open msageryd opened 2 months ago

msageryd commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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