Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25712daca4 |
@@ -76,13 +76,12 @@ go version -m "$(command -v sfdupes)"
|
|||||||
```
|
```
|
||||||
|
|
||||||
`sfdupes --version` prints `sfdupes VERSION`. For a binary from `go install`,
|
`sfdupes --version` prints `sfdupes VERSION`. For a binary from `go install`,
|
||||||
`VERSION` is the version Go recorded in it: the release tag, such as `v0.0.3`,
|
`VERSION` is the version Go recorded in it: the release tag, such as `v0.0.2`,
|
||||||
or for `@main` a pseudo-version ending in the first 12 characters of the
|
or for `@main` a pseudo-version ending in the first 12 characters of the
|
||||||
commit's hash. A binary built from a clone or into the Docker image carries the
|
commit's hash. A binary built from a clone or into the Docker image carries the
|
||||||
git tag or commit it was built from instead, and `VERSION` is `dev` only when
|
git tag or commit it was built from instead, and `VERSION` is `dev` only when
|
||||||
the binary carries no version at all. `go version -m` prints what Go recorded in
|
the binary carries no version at all. `go version -m` prints what Go recorded in
|
||||||
the binary; its `mod` line names the module's version. Binaries from `v0.0.2`
|
the binary; its `mod` line names the module's version.
|
||||||
and earlier print `dev`, so check those with `go version -m`.
|
|
||||||
|
|
||||||
From a clone, `make build` writes the binary to `./sfdupes`:
|
From a clone, `make build` writes the binary to `./sfdupes`:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user