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

docs: Updated go install command #219

Merged

Conversation

khmoryz
Copy link
Collaborator

@khmoryz khmoryz commented Dec 5, 2023

No issue

Description of changes

Change 1

Add@latestto end of line.

Reason:

docker pull golang:latest
docker run -it --rm golang:latest /bin/bash
root@534e3854e96c:/go# GO111MODULE=on go install github.com/aws-cloudformation/rain/cmd/rain
go: 'go install' requires a version when current directory is not in a module
        Try 'go install github.com/aws-cloudformation/rain/cmd/rain@latest' to install the latest version

Change 2

After go1.17, GO111MODULE is ignored.

https://go.dev/blog/go116-module-changes


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -43,7 +43,7 @@ If you have [homebrew](https://brew.sh/) installed, `brew install rain`

Or you can download the appropriate binary for your system from [the releases page](https://github.com/aws-cloudformation/rain/releases).

Or if you're a [Gopher](https://blog.golang.org/gopher), you can `GO111MODULE=on go install github.com/aws-cloudformation/rain/cmd/rain`
Or if you're a [Gopher](https://blog.golang.org/gopher), you can `go install github.com/aws-cloudformation/rain/cmd/rain@latest`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes need to be made to the readme template file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericzbeard
I didn't notice the template file.
Thanks for your review.

I fixed the issue in 8cc06a6 .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run go generate ./... and then push another commit with the generated files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it at 29e548e.

And...
I noticed cfn.go is updated.
This automation is awesome!

@ericzbeard ericzbeard merged commit 2117162 into aws-cloudformation:main Dec 7, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants