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

Unable to install rain - Linux #218

Closed
tech-novic opened this issue Dec 5, 2023 · 2 comments
Closed

Unable to install rain - Linux #218

tech-novic opened this issue Dec 5, 2023 · 2 comments

Comments

@tech-novic
Copy link

While installing rain getting this error

build github.com/aws-cloudformation/rain/cmd/rain: cannot load archive/zip: malformed module path "archive/zip": missing dot in first path element

Go version go1.13.8 linux/amd64

@khmoryz
Copy link
Collaborator

khmoryz commented Dec 5, 2023

Maybe, the Go version is too old.

I tried go1.13.8, and then I got a similar message.

build github.com/aws-cloudformation/rain/cmd/rain: cannot load embed: malformed module path "embed": missing dot in first path element

Try to use Go 1.18.10 or later.
In my Docker environment, I installed rain successfully.

Verification:

$ docker pull golang:1.18
$ docker run -it --rm golang:1.18 /bin/bash
root@c88d47fe047d:/go# go version
go version go1.18.10 linux/amd64
root@c88d47fe047d:/go# GO111MODULE=on go install github.com/aws-cloudformation/rain/cmd/rain@latest
root@c88d47fe047d:/go# ./bin/rain --help 
Rain is a command line tool for working with AWS CloudFormation templates and stacks

Usage:
  rain [command]

...omit

Reason:

rain/go.mod

Line 3 in 82d0829

go 1.18

@ericzbeard
Copy link
Contributor

@khmoryz is correct, need to update the Go version.

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

3 participants