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

Comments

Projects
None yet
4 participants
@as
Copy link
Contributor

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

This comment has been minimized.

Copy link

commented Aug 1, 2018

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 label Aug 1, 2018

@bradfitz bradfitz added this to the Go1.11 milestone Aug 1, 2018

@gopherbot gopherbot closed this in 27a9b1b Aug 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.