Skip to content

Commit

Permalink
Fix some codespell errors
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]

Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Nov 11, 2024
1 parent f036141 commit c2b42c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions copier/syscall_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ func sameDevice(a, b os.FileInfo) bool {
if aSys == nil || bSys == nil {
return true
}
au, aok := aSys.(*syscall.Stat_t)
bu, bok := bSys.(*syscall.Stat_t)
if !aok || !bok {
uA, okA := aSys.(*syscall.Stat_t)
uB, okB := bSys.(*syscall.Stat_t)
if !okA || !okB {
return true
}
return au.Dev == bu.Dev
return uA.Dev == uB.Dev
}

const (
Expand Down
2 changes: 1 addition & 1 deletion docs/buildah-build.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ Pass secret information to be used in the Containerfile for building images
in a safe way that will not end up stored in the final image, or be seen in other stages.
The value of the secret will be read from an environment variable or file named
by the "id" option, or named by the "src" option if it is specified, or from an
environment variable specifed by the "env" option.
environment variable specified by the "env" option.
The secret will be mounted in the container at `/run/secrets/*id*` by default.

To later use the secret, use the --mount flag in a `RUN` instruction within a `Containerfile`:
Expand Down
2 changes: 1 addition & 1 deletion pkg/parse/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func TestParsePullPolicy(t *testing.T) {
"newer": true,
"false": true,
"never": true,
"trye": false,
"try": false,
"truth": false,
}
for value, result := range testCases {
Expand Down
1 change: 0 additions & 1 deletion tests/source.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ load helpers
# Inspect the config
run jq -r .created $srcdir/blobs/sha256/$configDigest
assert "$status" -eq 0 "status of jq .created on configDigest"
creatd=$output
run date --date="$output"
assert "$status" -eq 0 "status of date (this should never ever fail)"
run jq -r .author $srcdir/blobs/sha256/$configDigest
Expand Down

0 comments on commit c2b42c5

Please sign in to comment.