Skip to content

g update升级报错[g] Invalid Semantic Version #109

@wangweicugw

Description

@wangweicugw

Describe the bug/缺陷描述
A clear and concise description of what the bug is.
g 1.4.0版本,使用g update命令升级报错[g] Invalid Semantic Version

Expected behavior/期望行为
A clear and concise description of what you expected to happen.
顺利升级

Screenshots/实际运行结果截图
If applicable, add screenshots to help explain your problem.
image

Environments (please complete the following information)/运行环境:

  • OS[e.g. uname -a]

  • g --version

        g version 1.4.0
        build: 2022-06-08T21:28:54+08:00
        branch: master
        commit: e1fdf711f3175765997863f71ab5632ea5cf4261
  • go env

          GO111MODULE=''
          GOARCH='arm64'
          GOBIN=''
          GOCACHE='/Users/wangwei/Library/Caches/go-build'
          GOENV='/Users/wangwei/Library/Application Support/go/env'
          GOEXE=''
          GOEXPERIMENT=''
          GOFLAGS=''
          GOHOSTARCH='arm64'
          GOHOSTOS='darwin'
          GOINSECURE=''
          GOMODCACHE='/Users/wangwei/go/pkg/mod'
          GONOPROXY=''
          GONOSUMDB=''
          GOOS='darwin'
          GOPATH='/Users/wangwei/go'
          GOPRIVATE=''
          GOPROXY='https://goproxy.io,direct'
          GOROOT='/Users/wangwei/.g/go'
          GOSUMDB='sum.golang.org'
          GOTMPDIR=''
          GOTOOLCHAIN='auto'
          GOTOOLDIR='/Users/wangwei/.g/go/pkg/tool/darwin_arm64'
          GOVCS=''
          GOVERSION='go1.21rc4'
          GCCGO='gccgo'
          AR='ar'
          CC='clang'
          CXX='clang++'
          CGO_ENABLED='1'
          GOMOD='/dev/null'
          GOWORK=''
          CGO_CFLAGS='-O2 -g'
          CGO_CPPFLAGS=''
          CGO_CXXFLAGS='-O2 -g'
          CGO_FFLAGS='-O2 -g'
          CGO_LDFLAGS='-O2 -g'
          PKG_CONFIG='pkg-config'
          GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/s_/c9lpww091y929f8c94k__ylm0000gp/T/go-build3467247047=/tmp/go-build -gno-record-gcc-switches -fno-common'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions