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 Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

sagikazarmark/moddown

Go Module downloader

GitHub Workflow Status Go Report Card PkgGoDev

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! :)

  1. Clone the repository
  2. Make changes on a new branch
  3. Run the test suite:
    ./pleasew build
    ./pleasew test
    ./pleasew lint
    
  4. 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.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2