diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 00:48:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 00:48:51 -0600 |
| commit | 4e47dea41e48e6ee8a48c0bbf75b1ba36a1b8f2c (patch) | |
| tree | f7c2ab17c3e0bbb82322667cb5ded165f227b0b7 | |
| parent | 0b5687f76618025230baa4cf31e56dc1aba52d8b (diff) | |
using mutex lock from protobufv0.0.12
| -rw-r--r-- | Makefile | 15 | ||||
| -rw-r--r-- | forgeConfig/main.go | 2 | ||||
| -rw-r--r-- | repoSettings.go | 2 |
3 files changed, 10 insertions, 9 deletions
@@ -5,15 +5,11 @@ # go install -all: forgeConfig.pb.go - reset - make -C forgeConfig - -vet: lint - GO111MODULE=off go vet +all: forgeConfig.pb.go vet -lint: - -buf lint repo.proto +vet: + @GO111MODULE=off go vet + @echo this go library package builds okay # autofixes your import headers in your golang files goimports: @@ -31,6 +27,9 @@ clean: -rm -f go.* make -C forgeConfig clean +build: + make -C forgeConfig + install: make -C forgeConfig install diff --git a/forgeConfig/main.go b/forgeConfig/main.go index 8ca4bf9..36b0b71 100644 --- a/forgeConfig/main.go +++ b/forgeConfig/main.go @@ -25,7 +25,7 @@ func main() { // try to delete, then save config and exit if argv.Delete { - if oldr := f.Config.DeleteByGoPath(argv.GoPath); oldr == nil { + if f.Config.DeleteByGoPath(argv.GoPath) { log.Info("deleted", argv.GoPath, "did not exist. did nothing") os.Exit(0) } diff --git a/repoSettings.go b/repoSettings.go index 9b03ad1..66677f8 100644 --- a/repoSettings.go +++ b/repoSettings.go @@ -20,6 +20,7 @@ func (f *Forge) SortByGoPath() *ForgeConfigIterator { } */ +/* func (all *ForgeConfigs) UpdateGoPath(name string, gopath string) bool { oldr := all.DeleteByGoPath(name) if oldr == nil { @@ -31,6 +32,7 @@ func (all *ForgeConfigs) UpdateGoPath(name string, gopath string) bool { oldr.GoPath = gopath return all.Append(oldr) } +*/ // returns true if gopath is readonly() // will attempt to match IsWritable("foo") against anything ending in "foo" |
