amake / go2port

A tool for generating MacPorts portfiles for Go projects
BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Add support for arbitrary domains #3

Closed mohd-akram closed 3 years ago

mohd-akram commented 4 years ago

Closes #2.

Tested with go run go2port.go -d get github.com/caddyserver/caddy v2.1.1.

amake commented 3 years ago

Thank you for your contribution.

I had to make various changes, most notably disabling the special handling of go.googlesource.com. The reason is that in my testing go.googlesource.com serves a different (i.e. checksum doesn't match) tarball each time you download. Such a service can't reliably used as a host for distfiles in MacPorts.

mohd-akram commented 3 years ago

Thanks for merging! Issue for reference - google/gitiles#84.

amake commented 3 years ago

Ah, thanks very much for that 👍