The notation repo contains the following:
notation
- A CLI for signing and verifying artifacts with Notation
Building above binaries require golang with version >= 1.20
.
-
Build the binaries, installing them to:
~/bin/notation
git clone https://github.com/notaryproject/notation.git cd notation make install
-
Verify binaries are installed
which notation # expected output /home/<user>/bin/notation
If you confront
notation not found
, please add~/bin/
to your $PATH:PATH="$HOME/bin:$PATH"
If you would like to add the path permanently, add the command to your shell
profile
:echo 'PATH="$HOME/bin:$PATH"' >> $profile_path source $profile_path
The
profile_path
per shell:- Bash:
~/.bash_profile
or~/.profile
- Zsh:
~/.zprofile
- Ksh:
~/.profile
- Bash: