Get support for sagikazarmark/moddown
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
sagikazarmark/moddown
Go Module downloader
moddown
is a simplified version of fetch_repo.
It focuses on downloading a module using go mod download
.
Unlike fetch_repo
, this tool does not create a dummy module
and uses the -modcacherw flag to make the cache writable (removable),
so it requires at least Go 1.14.
Usage
The basic functionality of moddown
includes:
- downloading a module (by calling
go mod download
under the hood) - checking the module sum against a known value
- copying files to a destination directory
./moddown -sum h1:snD5ODyv4c9DOBBZh645dy/TziVHZivuFtRRMZP8zK8= -dest ./emperror emperror.dev/errors@v0.4.2
moddown
can also use existing module information and delegate downloading to the Go tool:
go mod download -modcacherw -x -json emperror.dev/errors@v0.4.2 > mod.json
./moddown -sum h1:snD5ODyv4c9DOBBZh645dy/TziVHZivuFtRRMZP8zK8= -f mod.json
# OR pipe from stdin directly
go mod download -modcacherw -x -json emperror.dev/errors@v0.4.2 | ./moddown -v -sum h1:snD5ODyv4c9DOBBZh645dy/TziVHZivuFtRRMZP8zK8= -f -
Last, but not least: you can enable verbose logging with -v
.
Development
Contributions are welcome! :)
- Clone the repository
- Make changes on a new branch
- Run the test suite:
./pleasew build ./pleasew test ./pleasew lint
- Commit, push and open a PR
License
The MIT License (MIT). Please see License File for more information.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2