Skip to content

Commit b3564a0

Browse files
authored
Update tests to use up to date versions of Go (#470)
update Go version in tests update gofmt of examples fix goidentity imports in examples workaround go modules being default as of 1.16 for v7 that does not use modules
1 parent 663478b commit b3564a0

File tree

13 files changed

+20
-7
lines changed

13 files changed

+20
-7
lines changed

.github/workflows/testing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
go: [ '1.14.x', '1.15.x' ]
16+
go: [ '1.16.x', '1.17.x', '1.18.x' ]
1717
env:
1818
TEST_KDC_ADDR: 127.0.0.1
1919
TEST_HTTP_URL: http://cname.test.gokrb5
2020
TEST_HTTP_ADDR: 127.0.0.1
2121
DNS_IP: 127.0.88.53
2222
DNSUTILS_OVERRIDE_NS: 127.0.88.53:53
23+
GO111MODULE: auto
2324
steps:
2425
- name: Set up Go ${{ matrix.go }}
2526
uses: actions/setup-go@v1

.github/workflows/testingv8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go: [ '1.14.x', '1.15.x' ]
17+
go: [ '1.16.x', '1.17.x', '1.18.x' ]
1818
env:
1919
TEST_KDC_ADDR: 127.0.0.1
2020
TEST_HTTP_URL: http://cname.test.gokrb5

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Development will be focused on the latest major version. New features will only
1111

1212

1313
#### Go Version Support
14-
![Go version](https://img.shields.io/badge/Go-1.15-brightgreen.svg)
15-
![Go version](https://img.shields.io/badge/Go-1.14-brightgreen.svg)
14+
![Go version](https://img.shields.io/badge/Go-1.18-brightgreen.svg)
15+
![Go version](https://img.shields.io/badge/Go-1.17-brightgreen.svg)
16+
![Go version](https://img.shields.io/badge/Go-1.16-brightgreen.svg)
1617

1718
gokrb5 may work with other versions of Go but they are not formally tested.
1819
It has been reported that gokrb5 also works with the [gollvm](https://go.googlesource.com/gollvm/) compiler but this is not formally tested.

examples/example-AD.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main
@@ -11,6 +12,7 @@ import (
1112
"net/http/httptest"
1213
"os"
1314

15+
goidentity "gopkg.in/jcmturner/goidentity.v3"
1416
"gopkg.in/jcmturner/gokrb5.v7/client"
1517
"gopkg.in/jcmturner/gokrb5.v7/config"
1618
"gopkg.in/jcmturner/gokrb5.v7/credentials"

examples/example.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
// Package examples provides simple examples of gokrb5 use.
@@ -12,7 +13,7 @@ import (
1213
"net/http/httptest"
1314
"os"
1415

15-
"gopkg.in/jcmturner/goidentity.v3"
16+
goidentity "gopkg.in/jcmturner/goidentity.v3"
1617
"gopkg.in/jcmturner/gokrb5.v7/client"
1718
"gopkg.in/jcmturner/gokrb5.v7/config"
1819
"gopkg.in/jcmturner/gokrb5.v7/keytab"

examples/httpClient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

examples/httpServer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

v8/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Development will be focused on the latest major version. New features will only
1111

1212

1313
#### Go Version Support
14-
![Go version](https://img.shields.io/badge/Go-1.15-brightgreen.svg)
15-
![Go version](https://img.shields.io/badge/Go-1.14-brightgreen.svg)
14+
![Go version](https://img.shields.io/badge/Go-1.18-brightgreen.svg)
15+
![Go version](https://img.shields.io/badge/Go-1.17-brightgreen.svg)
16+
![Go version](https://img.shields.io/badge/Go-1.16-brightgreen.svg)
1617

1718
gokrb5 may work with other versions of Go but they are not formally tested.
1819
It has been reported that gokrb5 also works with the [gollvm](https://go.googlesource.com/gollvm/) compiler but this is not formally tested.

v8/examples/example-AD.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

v8/examples/example.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Package examples provides simple examples of gokrb5 use.
2+
//go:build examples
23
// +build examples
34

45
package main

v8/examples/httpClient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

v8/examples/httpServer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

v8/examples/longRunningClient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build examples
12
// +build examples
23

34
package main

0 commit comments

Comments
 (0)