diff options
| author | Eric Biggers <ebiggers@google.com> | 2023-09-09 14:43:01 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2023-09-09 14:46:23 -0700 |
| commit | ed87812bb4d1fb37c66671f3eb598ac6194bc35c (patch) | |
| tree | 84135a34347d24e46b1ccf64b0664728d76298a2 | |
| parent | b928729b995fbbc007e47ec39a111ef059fcb29c (diff) | |
README.md: don't recommend 'go get'
With the latest version of go, the recommended 'go get' commands fail:
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
Replace them with commands that work.
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -219,12 +219,12 @@ information about each of the commands. - Arch: [`pam`](https://www.archlinux.org/packages/core/x86_64/pam/) package (usually installed by default) -Once all the dependencies are installed, you can get the repository by running: +Once all the dependencies are installed, clone the repository by running: ```shell -go get -d github.com/google/fscrypt/... +git clone https://github.com/google/fscrypt ``` -Running `make` in `$GOPATH/src/github.com/google/fscrypt` builds the binary -(`fscrypt`) and PAM module (`pam_fscrypt.so`) in the `bin/` directory. +Running `make` builds the binary (`fscrypt`) and PAM module (`pam_fscrypt.so`) +in the `bin/` directory. Running `sudo make install` installs `fscrypt` into `/usr/local/bin`, `pam_fscrypt.so` into `/usr/local/lib/security`, and `pam_fscrypt/config` into @@ -245,7 +245,7 @@ binary, or `make install-pam` to only install the PAM files. Alternatively, if you only want to install the `fscrypt` binary to `$GOPATH/bin`, simply run: ```shell -go get github.com/google/fscrypt/cmd/fscrypt +go install github.com/google/fscrypt/cmd/fscrypt@latest ``` See the `Makefile` for instructions on how to further customize the build. |