https://github.com/ldez/deptomod
dep to go modules with sugar
https://github.com/ldez/deptomod
dep go-modules golang tools
Last synced: about 1 year ago
JSON representation
dep to go modules with sugar
- Host: GitHub
- URL: https://github.com/ldez/deptomod
- Owner: ldez
- License: apache-2.0
- Created: 2019-09-18T19:08:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-16T16:37:50.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T16:12:46.212Z (over 1 year ago)
- Topics: dep, go-modules, golang, tools
- Language: Go
- Homepage:
- Size: 103 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# dep to go modules with sugar
[](https://github.com/ldez/deptomod/releases/latest)
[](https://github.com/ldez/deptomod/actions)
A simple tool to convert a project from dep to go modules, respect `source` attribute.
If you appreciate this project:
[](https://github.com/sponsors/ldez)
## How to use
I recommend to export the status instead of using the `Gopkg.lock` from the project:
```bash
dep status -lock > Gopkg.lock.toml
```
Command line:
```yaml
Enhanced migration from dep to go modules.
Usage:
deptomod [flags]
Flags:
-h, --help help for deptomod
-i, --input string The input directory. (default "./fixtures")
-m, --module string The future module name. (default "github.com/user/repo")
-o, --output string The output file. (default "./go.mod.txt")
```