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

[Feature] support go install-based installation #34

Closed
2 tasks
orpheuslummis opened this issue Jul 29, 2022 · 4 comments
Closed
2 tasks

[Feature] support go install-based installation #34

orpheuslummis opened this issue Jul 29, 2022 · 4 comments

Comments

@orpheuslummis
Copy link

Is your feature request related to a problem? Please describe.
New standard in Go is to be able to install executables directly with go install

Describe the solution you'd like

  • go install https://github.com/ekalinin/github-markdown-toc.go ...
  • update README in light of it
@KEINOS
Copy link
Contributor

KEINOS commented Aug 24, 2022

Since gh-md-toc is already compatible with go.mod, the go install must include the main package path in /cmd/gh-md-toc and the version of the application being followed.

The below command worked for me. (GO version go1.19 linux/amd64)

go install github.com/ekalinin/github-markdown-toc.go/cmd/gh-md-toc@latest

For reproducibility here's the sample on Docker.

$ docker run --rm -it golang:alpine /bin/sh
/go # cd

~ # go install github.com/ekalinin/github-markdown-toc.go/cmd/gh-md-toc@latest
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.4
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf

~ # gh-md-toc --version
1.2.0

~ # go version
go version go1.19 linux/amd64

@KEINOS
Copy link
Contributor

KEINOS commented Aug 25, 2022

@orpheuslummis

Nothing is better than a better document. I pull-requested how to go install in the README.md @ PR #37.

@KEINOS
Copy link
Contributor

KEINOS commented Sep 10, 2022

@orpheuslummis

The PR #37 has been merged! 🎉 If this fits your needs, please close the issue. 👍

@orpheuslummis
Copy link
Author

great. thank you @KEINOS !

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

No branches or pull requests

2 participants