Skip to content

command line go installation does not work #1016

@mikepruett3

Description

@mikepruett3

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I try to run the following

go install github.com/alecthomas/chroma/v2

I get errors, and cannot continue. I would like to be able to use go install vs cloning the repo and manually doing it.

To Reproduce

I get the following error on windows:

go: 'go install' requires a version when current directory is not in a module
        Try 'go install github.com/alecthomas/chroma/v2@latest' to install the latest version

I try adding the @latest to the end of the command, and get this error:

package github.com/alecthomas/chroma/v2 is not a main package

Not sure how to proceed.
Trying from Windows 10 using go version go1.22.4 windows/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions