Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update min Go version #481

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ test-master:
@echo "everything is OK"

test-release:
cd _test/install/binary_gopath && docker build --build-arg release=$(RELEASE) --no-cache .
cd _test/install/binary_nogopath && docker build --build-arg release=$(RELEASE) --no-cache .
@echo "everything is OK"

Expand Down
6 changes: 0 additions & 6 deletions _test/install/binary_gopath/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions _test/install/binary_gopath/expected.txt

This file was deleted.

2 changes: 0 additions & 2 deletions _test/install/binary_gopath/expected2.txt

This file was deleted.

33 changes: 0 additions & 33 deletions _test/install/binary_gopath/expected3.txt

This file was deleted.

30 changes: 0 additions & 30 deletions _test/install/binary_gopath/rules.go

This file was deleted.

16 changes: 0 additions & 16 deletions _test/install/binary_gopath/target.go

This file was deleted.

26 changes: 0 additions & 26 deletions _test/install/binary_gopath/test.bash

This file was deleted.

2 changes: 1 addition & 1 deletion _test/install/binary_nogopath/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

ARG release
COPY . /root
Expand Down
33 changes: 0 additions & 33 deletions _test/install/binary_nogopath/expected3.txt

This file was deleted.

7 changes: 0 additions & 7 deletions _test/install/binary_nogopath/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,4 @@ diff -u actual.txt /root/expected.txt
./ruleguard -e 'm.Match(`$f($*_, ($x), $*_)`)' /root/target.go &> actual.txt || true
diff -u actual.txt /root/expected2.txt

export GO111MODULE=off
cd /usr/local/go
go get -v -u github.com/quasilyte/go-ruleguard/dsl
go get -v -u github.com/quasilyte/ruleguard-rules-test/...
CGO_ENABLED=0 /root/test/ruleguard -rules /root/rules.go ./src/encoding/... &> actual.txt || true
diff -u actual.txt /root/expected3.txt

echo SUCCESS
2 changes: 1 addition & 1 deletion _test/install/gitclone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
1 change: 0 additions & 1 deletion _test/install/gitclone/expected6.txt

This file was deleted.

7 changes: 0 additions & 7 deletions _test/install/gitclone/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,4 @@ diff -u actual.txt /root/expected4.txt
./go-ruleguard -e 'm.Match(`$f($*_, ($x), $*_)`)' /root/target.go &> actual.txt || true
diff -u actual.txt /root/expected5.txt

# Run inside GOROOT.
export GO111MODULE=off
cd /usr/local/go
go get -v -u github.com/quasilyte/go-ruleguard/dsl
/root/go-ruleguard/go-ruleguard -rules /root/rules.go ./src/encoding/... &> actual.txt || true
diff -u actual.txt /root/expected6.txt

echo SUCCESS
2 changes: 1 addition & 1 deletion _test/install/gitclone_nobuildtag/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
2 changes: 1 addition & 1 deletion _test/install/gitclone_toolsgo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
2 changes: 1 addition & 1 deletion _test/regress/issue103/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
2 changes: 1 addition & 1 deletion _test/regress/issue193/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
2 changes: 1 addition & 1 deletion _test/regress/issue317/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build
FROM golang:1.22-alpine AS build

COPY . /root

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/quasilyte/go-ruleguard

go 1.19
go 1.22.0

require (
github.com/go-toolsmith/astcopy v1.0.2
Expand Down
Loading