mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 12:09:08 +00:00
Remove max workers argument
Now that we're not spawning subprocesses like crazy it's far less relevant to limit concurrency.
This commit is contained in:
parent
33b65aa13e
commit
6273e2cefb
2 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,7 @@ type goModDownload struct {
|
|||
GoModSum string
|
||||
}
|
||||
|
||||
func GeneratePkgs(goModPath string, goMod2NixPath string, numWorkers int) ([]*schema.Package, error) {
|
||||
func GeneratePkgs(goModPath string, goMod2NixPath string) ([]*schema.Package, error) {
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"modPath": goModPath,
|
||||
|
|
3
main.go
3
main.go
|
@ -13,7 +13,6 @@ import (
|
|||
func main() {
|
||||
|
||||
var directory = flag.String("dir", "./", "Go project directory")
|
||||
var maxJobs = flag.Int("jobs", 10, "Number of max parallel jobs")
|
||||
var outDirFlag = flag.String("outdir", "", "output directory (if different from project directory)")
|
||||
flag.Parse()
|
||||
|
||||
|
@ -26,7 +25,7 @@ func main() {
|
|||
|
||||
goMod2NixPath := filepath.Join(outDir, "gomod2nix.toml")
|
||||
outFile := goMod2NixPath
|
||||
pkgs, err := generate.GeneratePkgs(goModPath, goMod2NixPath, *maxJobs)
|
||||
pkgs, err := generate.GeneratePkgs(goModPath, goMod2NixPath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue