Skip to content

x/sys: install error "found (vx.x.x), but does not contain package golang.org/x/sys" #53144

Closed

Description

@phongvq

What version of Go are you using (go version)?

$ go version
go version go1.18.2 darwin/arm64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/phongvq/Library/Caches/go-build"
GOENV="/Users/phongvq/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/phongvq/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/phongvq/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.18.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.18.2/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/j5/f_9l18994ng03qpgt9k4c8q80000gn/T/go-build16809025=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Run command:

go install github.com/OJ/gobuster/v3@latest

What did you expect to see?

can install x/sys package

What did you see instead?

go: golang.org/x/sys@latest: module golang.org/x/sys@latest found (v0.0.0-20220520151302-bc2c85ada10a), but does not contain package golang.org/x/sys

Activity

  1. added this to the Unreleased milestone on May 30, 2022
  2. changed the title [-]x/sys: install error "found (vx.x.x), but does not contain package golang.org/x/sys[/-] [+]x/sys: install error "found (vx.x.x), but does not contain package golang.org/x/sys:[/+] on May 30, 2022
  3. changed the title [-]x/sys: install error "found (vx.x.x), but does not contain package golang.org/x/sys:[/-] [+]x/sys: install error "found (vx.x.x), but does not contain package golang.org/x/sys"[/+] on May 30, 2022
  4. seankhliao commented on May 30, 2022

    @seankhliao
    Member

    The output you gave is inconsistent with the command you gave (and doesn't reproduce).
    The error is also correct for whatever you tried to do, there is no package at the root of golang.org/s/sys

    Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

    For questions please refer to https://github.com/golang/go/wiki/Questions

  5. locked and limited conversation to collaborators on May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions