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

Cannot install in GitHub Actions using go install #2053

Open
Cavaler opened this issue Apr 26, 2024 · 0 comments
Open

Cannot install in GitHub Actions using go install #2053

Cavaler opened this issue Apr 26, 2024 · 0 comments

Comments

@Cavaler
Copy link

Cavaler commented Apr 26, 2024

I'm trying to install gomplate in GHA with the following:

      - name: Setup Go
        uses: actions/setup-go@v5
        with:
          go-version: 'stable'

      - name: Install gomplate
        run: |
          go get github.com/hairyhenderson/gomplate/v4/cmd/gomplate@latest
          gomplate --help

But I get an error:

Run go install github.com/hairyhenderson/gomplate/v4/cmd/gomplate@latest
go: downloading github.com/hairyhenderson/gomplate v3.5.0+incompatible
go: downloading github.com/hairyhenderson/gomplate/v4 v4.0.0-pre-2
go: github.com/hairyhenderson/gomplate/v4/cmd/gomplate@latest (in github.com/hairyhenderson/gomplate/v4@v4.0.0-pre-2):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Either this should be fixed in some way, or this installation method should be removed from documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant