google / addlicense

A program which ensures source code files have copyright license headers by scanning directory patterns recursively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to install this tool?

DanielSank opened this issue · comments

I installed Go and then installed as instructed by the readme:

go get -u github.com/google/addlicense

addlicense is still not an executable on my system as far as I can tell. How do I run addlicense?

It is indeed not clear where the binary gets installed to. After some digging, I found it at $HOME/go/bin/addlicense.

How do I run addlicense?

As Xiuming mentioned, the binary gets installed to $HOME/go/bin/addlicense. If you want to be able to execute it anywhere on your system, I recommend setting a GOPATH environment variable.

https://stackoverflow.com/questions/21001387/how-do-i-set-the-gopath-environment-variable-on-ubuntu-what-file-must-i-edit

It is indeed not clear where the binary gets installed to. After some digging, I found it at $HOME/go/bin/addlicense.

That was it for me on MacOS! Thank you

closing this, since it sounds like you got thing sorted out. I'll also note that we are working on publishing releases with pre-built binaries for common platforms, so that will be another option soon.