Skip to content

Commit cff3313

Browse files
Merge pull request #19 from puppetlabs/maint/main/bump_go
(PE-42019) Bump go to 1.25.0
2 parents c98dfcd + 8964e00 commit cff3313

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+201
-2018
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
GOPATH: ${{ github.workspace }}
1212
strategy:
1313
matrix:
14-
go-version: [1.15.x, 1.16.x]
14+
go-version: [1.25.0]
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
1616
runs-on: ${{ matrix.platform }}
1717
steps:
@@ -26,7 +26,9 @@ jobs:
2626
path: ./src/github.com/puppetlabs/pe-sdk-go/
2727
- name: Install pre-requisites
2828
if: matrix.platform == 'ubuntu-latest'
29-
run: go get -u golang.org/x/tools/cmd/goimports golang.org/x/lint/golint
29+
run: |
30+
go install golang.org/x/tools/cmd/goimports@latest
31+
go install golang.org/x/lint/golint@latest
3032
- name: Format
3133
if: matrix.platform == 'ubuntu-latest'
3234
run: cd ./src/github.com/puppetlabs/pe-sdk-go && make format

app/puppet-access/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package api
22

33
import "github.com/puppetlabs/pe-sdk-go/app/puppet-access/api/client"
44

5-
//Client is interface to the api client
5+
// Client is interface to the api client
66
type Client interface {
77
GetClient() (*client.PuppetAccess, error)
88
}

app/puppet-access/api/client/operations/login_parameters.go

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

app/puppet-access/api/client/operations/login_responses.go

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

app/puppet-access/api/client/operations/operations_client.go

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

app/puppet-access/api/swaggerclient.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ import (
1414
"github.com/puppetlabs/pe-sdk-go/log/loglevel"
1515
)
1616

17-
//SwaggerClientCfg represent a pe-sdk-go swagger client config
17+
// SwaggerClientCfg represent a pe-sdk-go swagger client config
1818
type SwaggerClientCfg struct {
1919
Login, Password, Lifetime, URL, Label, Cacert, Username string
2020
UseCNVerification bool
2121
}
2222

23-
//SwaggerClient represents a pe-sdk-go swagger client
23+
// SwaggerClient represents a pe-sdk-go swagger client
2424
type SwaggerClient struct {
2525
SwaggerClientCfg
2626
}
2727

28-
//NewClient creates a new NewClient
28+
// NewClient creates a new NewClient
2929
func NewClient(cfg SwaggerClientCfg) Client {
3030
return &SwaggerClient{
3131
cfg,
3232
}
3333
}
3434

35-
//GetClient configures and creates a swagger generated client
35+
// GetClient configures and creates a swagger generated client
3636
func (sc *SwaggerClient) GetClient() (*client.PuppetAccess, error) {
3737
if sc.URL == "" {
3838
err := fmt.Errorf("Please provide the service URL. For example, `puppet-access login [username] --service-url https://<HOSTNAME OF PUPPET ENTERPRISE CONSOLE>:4433/rbac-ap`")

app/puppet-access/puppet-access.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/puppetlabs/pe-sdk-go/app/puppet-access/api"
55
)
66

7-
//PuppetAccessCfg config
7+
// PuppetAccessCfg config
88
type PuppetAccessCfg struct {
99
Username string
1010
Password string

app/puppet-code/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package api
22

33
import "github.com/puppetlabs/pe-sdk-go/app/puppet-code/api/client"
44

5-
//Client is interface to the api client
5+
// Client is interface to the api client
66
type Client interface {
77
GetClient() (*client.PuppetCode, error)
88
}

app/puppet-code/api/client/operations/deploy_parameters.go

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

app/puppet-code/api/client/operations/deploy_responses.go

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

0 commit comments

Comments
 (0)