Skip to content

Commit

Permalink
user: require go1.21 or higher
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jul 16, 2024
1 parent 4507a5d commit 6438200
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ clean:
test: test-local
set -eu; \
for p in $(PACKAGES); do \
(cd $$p; go test $(RUN_VIA_SUDO) -v .); \
if $p = user && go version | grep -qv go1.17; then \
(cd $$p; go test $(RUN_VIA_SUDO) -v .); \
fi \
done

.PHONY: tidy
tidy:
set -eu; \
for p in $(PACKAGES); do \
(cd $$p; go mod tidy); \
if $p = user && go version | grep -qv go1.17; then \
(cd $$p; go mod tidy); \
fi \
done

# Test the mount module against the local mountinfo source code instead of the
Expand Down
2 changes: 1 addition & 1 deletion user/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/moby/sys/user

go 1.17
go 1.21

require golang.org/x/sys v0.1.0

0 comments on commit 6438200

Please sign in to comment.