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 v3.11.0 #1428

Closed
adippel opened this issue Jun 13, 2022 · 5 comments · Fixed by #1430
Closed

Cannot install v3.11.0 #1428

adippel opened this issue Jun 13, 2022 · 5 comments · Fixed by #1430
Assignees
Labels

Comments

@adippel
Copy link

adippel commented Jun 13, 2022

When a try to install latest. which now points to v3.11.0, I get the following error:

$ go install github.com/hairyhenderson/gomplate/v3/cmd/gomplate@latest
go: github.com/hairyhenderson/gomplate/v3/cmd/gomplate@latest (in github.com/hairyhenderson/gomplate/[email protected]):
        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.  
$ go version
go version go1.18.1 windows/amd64

Installing v3.10.0 still works.

Is this an issue on your site?

@hairyhenderson
Copy link
Owner

Hi @adippel, sorry to see you ran into this issue... Unfortunately that replace directive is required for now to work around a bug.

This is a restriction that's been discussed at length in this Go issue, but it seems like there isn't much chance of it being fixed any time soon.

I could avoid it by forking the upstream package and switching to that fork, but IMO the replace directive is a cleaner approach.

Is there a reason you need to install via go install rather than downloading a binary or using one of the packages? Obviously go install should be a totally fine installation method, but I'm curious 😉

@mgutz
Copy link

mgutz commented Jun 18, 2022

@hairyhenderson go install is easier than having to copy download url, wget url, unarchive, move to ~/.local/bin, chmod

Not a big deal.

@hairyhenderson hairyhenderson self-assigned this Jun 18, 2022
@hairyhenderson
Copy link
Owner

Thanks for the feedback @mgutz - that's totally fair!

I'll get this solved soon.

@adippel
Copy link
Author

adippel commented Jun 19, 2022

Totally agree with @mgutz. I use gomplate within a CI Job for building a Go based project. Using go install is just so convenient.

Thanks for looking into this and for this awesome tool!

@hairyhenderson
Copy link
Owner

FYI this should be resolved by the v3.11.1 tag. I'm building a release now, but you should already be able to go install it.

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

Successfully merging a pull request may close this issue.

3 participants