Skip to content

Commit baa27fb

Browse files
authored
Merge pull request #176 from MathisBurger/fix/deps
Fixed dependencies
2 parents 28949b0 + d0a0d3b commit baa27fb

File tree

7 files changed

+34
-32
lines changed

7 files changed

+34
-32
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14+
- name: Install Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.23
18+
- name: Go mod tidy
19+
run: |
20+
cd usernator
21+
go mod tidy
1422
- name: Run lint
1523
uses: golangci/golangci-lint-action@v6
1624
with:

tasky/Cargo.lock

Lines changed: 5 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasky/src/handler/solution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ fn compare_answers(question: &QuestionCatalogueElement, answer: Value) -> bool {
201201
if !match_question_type(question.answer_type.clone(), answer.clone()) {
202202
return false;
203203
}
204-
return match question.answer_type {
204+
match question.answer_type {
205205
AnswerType::Number => question.answer.as_number().unwrap() == answer.as_number().unwrap(),
206206
AnswerType::String => question.answer.as_str().unwrap() == answer.as_str().unwrap(),
207207
AnswerType::StrContains => answer
208208
.as_str()
209209
.unwrap()
210210
.contains(question.answer.as_str().unwrap()),
211211
AnswerType::Boolean => question.answer.as_bool().unwrap() == answer.as_bool().unwrap(),
212-
};
212+
}
213213
}

tasky/src/models/group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl GroupRepository {
6464
if result.is_empty() {
6565
return None;
6666
}
67-
return Some(result.first().unwrap().clone());
67+
Some(result.first().unwrap().clone())
6868
}
6969

7070
/// Inserts a group into the database

usernator/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22-alpine AS build
1+
FROM golang:1.23-alpine AS build
22
WORKDIR /app
33
COPY . .
44
RUN go mod tidy
@@ -9,4 +9,4 @@ COPY --from=build /app/bin/usernator ./usernator
99
RUN chmod +x ./usernator
1010
EXPOSE 3000
1111
EXPOSE 3001
12-
CMD ./usernator
12+
CMD ./usernator

usernator/go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
module usernator
22

33
go 1.21.4
4+
toolchain go1.23.7
45

56
require (
67
github.com/gofiber/fiber/v2 v2.52.5
78
github.com/lib/pq v1.10.9
89
github.com/sethvargo/go-envconfig v1.1.0
9-
golang.org/x/crypto v0.31.0
10+
golang.org/x/crypto v0.35.0
1011
google.golang.org/grpc v1.67.0
1112
google.golang.org/protobuf v1.34.2
1213
gorm.io/driver/postgres v1.5.9
@@ -30,9 +31,9 @@ require (
3031
github.com/valyala/bytebufferpool v1.0.0 // indirect
3132
github.com/valyala/fasthttp v1.51.0 // indirect
3233
github.com/valyala/tcplisten v1.0.0 // indirect
33-
golang.org/x/net v0.28.0 // indirect
34-
golang.org/x/sync v0.10.0 // indirect
35-
golang.org/x/sys v0.28.0 // indirect
36-
golang.org/x/text v0.21.0 // indirect
34+
golang.org/x/net v0.36.0 // indirect
35+
golang.org/x/sync v0.11.0 // indirect
36+
golang.org/x/sys v0.30.0 // indirect
37+
golang.org/x/text v0.22.0 // indirect
3738
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
3839
)

usernator/go.sum

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ github.com/valyala/fasthttp v1.51.0 h1:8b30A5JlZ6C7AS81RsWjYMQmrZG6feChmgAolCl1S
4949
github.com/valyala/fasthttp v1.51.0/go.mod h1:oI2XroL+lI7vdXyYoQk03bXBThfFl2cVdIA3Xl7cH8g=
5050
github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8=
5151
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
52-
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
53-
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
54-
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
55-
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
56-
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
57-
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
52+
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
53+
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
54+
golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA=
55+
golang.org/x/net v0.36.0/go.mod h1:bFmbeoIPfrw4sMHNhb4J9f6+tPziuGjq7Jk/38fxi1I=
56+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
57+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
5858
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5959
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
60-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
61-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
62-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
63-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
60+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
61+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
62+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
63+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
6464
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs=
6565
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
6666
google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw=

0 commit comments

Comments
 (0)