markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Install: Build Instructions Don't Work

Open nathandelane opened this issue 4 years ago • 1 comments

I tried running make install in the root of the clone of this project, and it failed with the following error:

$ go version
go version go1.16.7 darwin/amd64
$ make install
go install -ldflags="-X main.version=`cat VERSION`" "github.com/sebdah/markdown-toc"
go install: version is required when current directory is not in a module
	Try 'go install github.com/sebdah/markdown-toc@latest' to install the latest version
make: *** [install] Error 1

So I tried go install github.com/sebdah/markdown-toc@latest and I'm not exactly sure that installed markdown-toc:

$ go install github.com/sebdah/markdown-toc@latest
go: downloading github.com/sebdah/markdown-toc v0.0.0-20171116085747-3bb461875c34
go: finding module for package github.com/spf13/cobra
go: downloading github.com/spf13/cobra v1.2.1
go: found github.com/spf13/cobra in github.com/spf13/cobra v1.2.1
go: downloading github.com/spf13/pflag v1.0.5

$ markdown-toc
-bash: markdown-toc: command not found

This doesn't seem to be working.

nathandelane avatar Aug 12 '21 18:08 nathandelane

Accidentally closed this - this is still an issue.

nathandelane avatar Aug 12 '21 18:08 nathandelane