File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
- uses : actions/setup-go@v2
14
14
with :
15
- go-version : ' ^1.18 '
15
+ go-version : ' ^1.22 '
16
16
17
17
- name : Set up Docker Buildx
18
18
uses : docker/setup-buildx-action@v1
Original file line number Diff line number Diff line change 3
3
This is a simple external resource enabling Bob to read git repositories.
4
4
5
5
#### Requirements
6
- - [ Go] ( https://golang.org/dl/ ) 1.18 +
6
+ - [ Go] ( https://golang.org/dl/ ) 1.22 +
7
7
8
8
#### Running
9
9
- ` go build main.go ` to compile the code and obtain a binary ` main ` .
Original file line number Diff line number Diff line change 1
1
module github.com/bob-cd/resource-git
2
2
3
- go 1.21
4
-
5
- toolchain go1.21.9
3
+ go 1.22
6
4
7
5
require github.com/go-git/go-git/v5 v5.12.0
8
6
Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ func main() {
131
131
132
132
client .InstallProtocol ("https" , githttp .NewClient (customClient ))
133
133
134
- http .HandleFunc ("/ping" , ping )
135
- http .HandleFunc ("/bob_resource" , clone )
134
+ http .HandleFunc ("GET /ping" , ping )
135
+ http .HandleFunc ("GET /bob_resource" , clone )
136
136
137
137
http .ListenAndServe (":" + port , nil )
138
138
}
You can’t perform that action at this time.
0 commit comments