summaryrefslogtreecommitdiff
path: root/doDelete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 01:14:37 -0600
committerJeff Carr <[email protected]>2024-12-17 01:14:37 -0600
commit0e84f2f1c116c69700a77ee745782f2628654126 (patch)
tree75f7a035f11d858f81eebd698306637e5254a0bb /doDelete.go
parenta71305ea52b931c189076e11a4526848bf822c15 (diff)
more cleanups to fix forgepb values
Diffstat (limited to 'doDelete.go')
-rw-r--r--doDelete.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/doDelete.go b/doDelete.go
deleted file mode 100644
index b0ab05e..0000000
--- a/doDelete.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package main
-
-import (
- "go.wit.com/lib/protobuf/gitpb"
- "go.wit.com/log"
-)
-
-func Delete(repo *gitpb.Repo, s map[string]string) bool {
- if repo.Published == nil {
- log.Info("published is nil", repo.Published)
- } else {
- log.Info("published len", repo.Published.Len())
- }
-
- // add a new one here
- newr := gitpb.Repo{
- FullPath: repo.FullPath,
- GoPath: repo.GoPath,
- URL: repo.URL,
- Tags: repo.Tags,
- LastPull: repo.LastPull,
- MasterBranchName: repo.MasterBranchName,
- DevelBranchName: repo.DevelBranchName,
- UserBranchName: repo.UserBranchName,
- GoLibrary: repo.GoLibrary,
- GoBinary: repo.GoBinary,
- GoPrimitive: repo.GoPrimitive,
- GoPlugin: repo.GoPlugin,
- GoDeps: repo.GoDeps,
- LastGoDep: repo.LastGoDep,
- Dirty: repo.Dirty,
- Published: repo.Published,
- TargetVersion: repo.TargetVersion,
- ReadOnly: repo.ReadOnly,
- GoProtobuf: repo.GoProtobuf,
- }
- if argv.Fix {
- me.forge.Repos.AppendUniqueGoPath(&newr)
- }
- return true
-}