-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add support for go modules #9
Conversation
Note: requests to proxy.golang.org must be lowercase, otherwise it errors: golang/go#40202 (comment) |
Go's integrity checking code for zips: https://github.com/golang/mod/blob/master/sumdb/dirhash/hash.go (h1 is base64 encoded sha256), need to implement the https://www.npmjs.com/package/node-stream-zip should be helpful |
Merged to avoid more conflicts in the near future |
Adds support for acting as a go modules proxy server like https://proxy.golang.org, caching the zips to ipfs along the way.
Also lots of refactoring to make the codebase less npm specific, still some more work to do:
forest packages
only lists npm packages atmforest republish
only reads package-lock.json files, should also readgo.sum
files, output should be a combination of bothforest seed
may not work for go modules at the momentforest verify
command only checks npm packages atmforest update
doesn't check go modules right nowforest preload
only looks for package-lock.json files, should also search forgo.sum
filesserver.js
forest watch
only watches for new npm releases--manager npm