Skip to content

Commit

Permalink
Remove please_go get (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
toastwaffle authored Nov 1, 2024
1 parent c0ce501 commit 25a818d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 186 deletions.
2 changes: 0 additions & 2 deletions tools/please_go/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ go_binary(
"//tools/please_go/embed",
"//tools/please_go/filter",
"//tools/please_go/generate",
"//tools/please_go/goget",
"//tools/please_go/install",
"//tools/please_go/modinfo",
"//tools/please_go/packageinfo",
Expand Down Expand Up @@ -41,7 +40,6 @@ genrule(
"//tools/please_go/filter:srcs",
"//tools/please_go/generate:srcs",
"//tools/please_go/generate/gomoddeps:srcs",
"//tools/please_go/goget:srcs",
"//tools/please_go/install:srcs",
"//tools/please_go/install/exec:srcs",
"//tools/please_go/install/toolchain:srcs",
Expand Down
16 changes: 0 additions & 16 deletions tools/please_go/goget/BUILD

This file was deleted.

155 changes: 0 additions & 155 deletions tools/please_go/goget/go_get.go

This file was deleted.

13 changes: 0 additions & 13 deletions tools/please_go/please_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/please-build/go-rules/tools/please_go/embed"
"github.com/please-build/go-rules/tools/please_go/filter"
"github.com/please-build/go-rules/tools/please_go/generate"
"github.com/please-build/go-rules/tools/please_go/goget"
"github.com/please-build/go-rules/tools/please_go/install"
"github.com/please-build/go-rules/tools/please_go/modinfo"
"github.com/please-build/go-rules/tools/please_go/packageinfo"
Expand Down Expand Up @@ -181,18 +180,6 @@ var subCommands = map[string]func() int{
}
return 0
},
"get": func() int {
if opts.GoGet.ModFile != "" {
if err := goget.GetMod(opts.GoGet.ModFile); err != nil {
log.Fatalf("failed to generate go rules: %v", err)
}
return 0
}
if err := goget.GoGet(opts.GoGet.Args.Requirements); err != nil {
log.Fatalf("failed to generate go rules: %v", err)
}
return 0
},
"package_info": func() int {
pi := opts.PackageInfo
if err := packageinfo.WritePackageInfo(pi.ImportPath, pi.Pkg, "", pi.ImportMap, nil, pi.Subrepo, pi.Module, os.Stdout); err != nil {
Expand Down

0 comments on commit 25a818d

Please sign in to comment.