File: building.md

package info (click to toggle)
golang-github-notaryproject-notation 1.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,160 kB
  • sloc: sh: 202; makefile: 67
file content (38 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Building Notation

The notation repo contains the following:

- `notation` - A CLI for signing and verifying artifacts with Notation

Building above binaries require [golang](https://golang.org/dl/) with version `>= 1.23`.

## Windows with WSL or Linux

- Build the binaries, installing them to:
  - `~/bin/notation`
  ```sh
  git clone https://github.com/notaryproject/notation.git
  cd notation
  make install
  ```
- Verify binaries are installed
  ```sh
  which notation
  # expected output
  /home/<user>/bin/notation
  ```

  If you confront `notation not found`, please add `~/bin/` to your $PATH:
  ```sh
  PATH="$HOME/bin:$PATH"
  ```
  If you would like to add the path permanently, add the command to your shell `profile`:
  ```sh
  echo 'PATH="$HOME/bin:$PATH"' >> $profile_path
  source $profile_path
  ```
  The `profile_path` per shell:
  - Bash: `~/.bash_profile` or `~/.profile`
  - Zsh: `~/.zprofile`
  - Ksh: `~/.profile`