fixes to marshal
This commit is contained in:
parent
a483e69d12
commit
3532a553e4
7
Makefile
7
Makefile
|
@ -12,8 +12,8 @@ no-gui: build
|
||||||
./go-clone --no-gui
|
./go-clone --no-gui
|
||||||
|
|
||||||
build:
|
build:
|
||||||
make -C ../../lib/protobuf/gitpb/
|
reset
|
||||||
GO111MODULE=off go build \
|
GO111MODULE=off go build -v \
|
||||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
@ -49,6 +49,9 @@ clean:
|
||||||
git-clone:
|
git-clone:
|
||||||
./go-clone --recursive --go-src --no-work go.wit.com/lib/daemons/virtigod
|
./go-clone --recursive --go-src --no-work go.wit.com/lib/daemons/virtigod
|
||||||
|
|
||||||
|
test-build: build
|
||||||
|
./go-clone --build go.wit.com/apps/helloworld
|
||||||
|
|
||||||
debian:
|
debian:
|
||||||
go-deb --no-gui --repo go.wit.com/apps/go-clone
|
go-deb --no-gui --repo go.wit.com/apps/go-clone
|
||||||
|
|
||||||
|
|
8
main.go
8
main.go
|
@ -10,6 +10,7 @@ import (
|
||||||
"go.wit.com/lib/gui/repolist"
|
"go.wit.com/lib/gui/repolist"
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ var BUILDTIME string
|
||||||
var pp *arg.Parser
|
var pp *arg.Parser
|
||||||
var forge *forgepb.Forge
|
var forge *forgepb.Forge
|
||||||
var rv *repolist.RepoList
|
var rv *repolist.RepoList
|
||||||
|
var argvRepo *gitpb.Repo
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
pp = arg.MustParse(&argv)
|
pp = arg.MustParse(&argv)
|
||||||
|
@ -40,8 +42,8 @@ func main() {
|
||||||
// forge.ConfigPrintTable()
|
// forge.ConfigPrintTable()
|
||||||
os.Setenv("REPO_WORK_PATH", forge.GetGoSrc())
|
os.Setenv("REPO_WORK_PATH", forge.GetGoSrc())
|
||||||
|
|
||||||
pb := forge.Repos.FindByGoPath(argv.Repo)
|
argvRepo = forge.Repos.FindByGoPath(argv.Repo)
|
||||||
if pb == nil {
|
if argvRepo == nil {
|
||||||
log.Info("yep, need to clone", argv.Repo)
|
log.Info("yep, need to clone", argv.Repo)
|
||||||
} else {
|
} else {
|
||||||
log.Info("already have", argv.Repo)
|
log.Info("already have", argv.Repo)
|
||||||
|
@ -49,7 +51,6 @@ func main() {
|
||||||
okExit(argv.Repo)
|
okExit(argv.Repo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// gui is in testing
|
// gui is in testing
|
||||||
myGui := gui.New()
|
myGui := gui.New()
|
||||||
// myGui.Default()
|
// myGui.Default()
|
||||||
|
@ -201,6 +202,7 @@ func redoGoModAll() {
|
||||||
func build() {
|
func build() {
|
||||||
if argv.Build {
|
if argv.Build {
|
||||||
log.Info("need to try to build here")
|
log.Info("need to try to build here")
|
||||||
|
forge.Build(argvRepo, nil)
|
||||||
} else {
|
} else {
|
||||||
log.Info("skipping build")
|
log.Info("skipping build")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue