Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: panic on running 'go mod' without arguments #26738

Closed
as opened this issue Aug 1, 2018 · 1 comment
Closed

cmd/go: panic on running 'go mod' without arguments #26738

as opened this issue Aug 1, 2018 · 1 comment
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Milestone

Comments

@as
Copy link
Contributor

as commented Aug 1, 2018

go version devel +6b9c782f9f Wed Aug 1

; go mod
Go mod provides access to operations on modules.

Note that support for modules is built into all the go commands,
not just 'go mod'. For example, day-to-day adding, removing, upgrading,
and downgrading of dependencies should be done using 'go get'.
See 'go help modules' for an overview of module functionality.

Usage:

        go mod <command> [arguments]

The commands are:

        edit        edit go.mod from tools or scripts
        fix         make go.mod semantically consistent
        graph       print module requirement graph
        init        initialize new module in current directory
        tidy        add missing and remove unused modules
        vendor      make vendored copy of dependencies
        verify      verify dependencies have expected content

Use "go help mod <command>" for more information about a command.

panic: runtime error: index out of range

goroutine 1 [running]:
main.main()
        /g/src/github.com/golang/go/src/cmd/go/main.go:197 +0x1a28
@gopherbot
Copy link

Change https://golang.org/cl/127160 mentions this issue: cmd/go: avoid panic on 'go mod' without arguments

@oiooj oiooj added the modules label Aug 1, 2018
@bradfitz bradfitz added the NeedsFix The path to resolution is known, but the work has not been done. label Aug 1, 2018
@bradfitz bradfitz added this to the Go1.11 milestone Aug 1, 2018
@golang golang locked and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Projects
None yet
Development

No branches or pull requests

4 participants