ldflags not working
This commit is contained in:
parent
b5825e93dd
commit
89eb940a9e
4
Makefile
4
Makefile
|
@ -11,8 +11,8 @@ no-gui: build
|
|||
./go-clone --no-gui
|
||||
|
||||
build:
|
||||
# GO111MODULE=off go build -v -ldflags "-X main.VERSION=${VERSION}" -ldflags "-X main.GUIVERSION=${VERSION}"
|
||||
GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}"
|
||||
GO111MODULE=off go build -v -ldflags "-X main.VERSION=${VERSION}" -ldflags "-X main.GUIVERSION=${VERSION}"
|
||||
@# GO111MODULE=off go build -v -ldflags "-X main.GUIVERSION=${VERSION}"
|
||||
|
||||
install:
|
||||
GO111MODULE="off" go install -v
|
||||
|
|
2
argv.go
2
argv.go
|
@ -11,7 +11,7 @@ type args struct {
|
|||
Work bool `arg:"--work" help:"make a work directory"`
|
||||
}
|
||||
|
||||
func (args) Description() string {
|
||||
func (a args) Description() string {
|
||||
return `
|
||||
Example usage: "go-clone go.wit.com/apps/go-clone"
|
||||
|
||||
|
|
3
main.go
3
main.go
|
@ -25,6 +25,7 @@ func main() {
|
|||
// fmt.Println("hello world")
|
||||
tmp := myargs.Description()
|
||||
fmt.Println(tmp)
|
||||
fmt.Println(myargs.Version())
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
@ -41,7 +42,7 @@ func main() {
|
|||
b := gui.RawBox()
|
||||
rv = repolist.AutotypistView(b)
|
||||
|
||||
// clone(myargs.Repo)
|
||||
os.Setenv("REPO_AUTO_CLONE", "true")
|
||||
rv.NewRepo(myargs.Repo)
|
||||
|
||||
// rv.NewRepo("go.wit.com/apps/helloworld")
|
||||
|
|
Loading…
Reference in New Issue