Skip to content

Commit b63dca5

Browse files
authored
[main] upgrade module to v9 standard go version workflow (#3260)
1 parent 47fadd0 commit b63dca5

File tree

2,268 files changed

+16699
-11793
lines changed

Some content is hidden

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

2,268 files changed

+16699
-11793
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ CF_BUILD_VERSION ?= v9.0.0
1010
CF_BUILD_SHA ?= $$(git rev-parse --short HEAD)
1111
CF_BUILD_DATE ?= $$(date -u +"%Y-%m-%d")
1212
LD_FLAGS_COMMON=-w -s \
13-
-X code.cloudfoundry.org/cli/version.binarySHA=$(CF_BUILD_SHA) \
14-
-X code.cloudfoundry.org/cli/version.binaryBuildDate=$(CF_BUILD_DATE)
13+
-X code.cloudfoundry.org/cli/v9/version.binarySHA=$(CF_BUILD_SHA) \
14+
-X code.cloudfoundry.org/cli/v9/version.binaryBuildDate=$(CF_BUILD_DATE)
1515
LD_FLAGS =$(LD_FLAGS_COMMON) \
16-
-X code.cloudfoundry.org/cli/version.binaryVersion=$(CF_BUILD_VERSION)
16+
-X code.cloudfoundry.org/cli/v9/version.binaryVersion=$(CF_BUILD_VERSION)
1717
LD_FLAGS_LINUX = -extldflags \"-static\" $(LD_FLAGS)
1818
REQUIRED_FOR_STATIC_BINARY =-a -tags "netgo" -installsuffix netgo
1919
GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ information follow:
9393
* [The CF CLI plugin development guide](https://github.com/cloudfoundry/cli/tree/main/plugin/plugin_examples)
9494
* [The official plugins repository](https://plugins.cloudfoundry.org/)
9595

96-
When importing the plugin code use `import "code.cloudfoundry.org/cli/plugin"`.
96+
When importing the plugin code use `import "code.cloudfoundry.org/cli/v9/plugin"`.
9797
Older plugins that import `github.com/cloudfoundry/cli/plugin` will still work
9898
as long they vendor the plugins directory.

actor/actionerror/duplicate_service_error_test.go

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

33
import (
4-
"code.cloudfoundry.org/cli/actor/actionerror"
4+
"code.cloudfoundry.org/cli/v9/actor/actionerror"
55
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)

actor/actionerror/duplicate_service_plan_error_test.go

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

33
import (
4-
"code.cloudfoundry.org/cli/actor/actionerror"
4+
"code.cloudfoundry.org/cli/v9/actor/actionerror"
55
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)

actor/actionerror/enrich_api_errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package actionerror
22

3-
import "code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
3+
import "code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccerror"
44

55
func EnrichAPIErrors(e error) error {
66
switch err := e.(type) {

actor/actionerror/enrich_api_errors_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package actionerror_test
33
import (
44
"errors"
55

6-
"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
6+
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccerror"
77

8-
"code.cloudfoundry.org/cli/actor/actionerror"
8+
"code.cloudfoundry.org/cli/v9/actor/actionerror"
99

1010
. "github.com/onsi/ginkgo/v2"
1111
. "github.com/onsi/gomega"

actor/actionerror/package_not_found_in_app_error_test.go

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

33
import (
4-
"code.cloudfoundry.org/cli/actor/actionerror"
4+
"code.cloudfoundry.org/cli/v9/actor/actionerror"
55
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)

actor/actionerror/route_not_found_error_test.go

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

33
import (
4-
"code.cloudfoundry.org/cli/actor/actionerror"
4+
"code.cloudfoundry.org/cli/v9/actor/actionerror"
55
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)

actor/actionerror/security_group_not_bound_to_space_error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package actionerror
33
import (
44
"fmt"
55

6-
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
6+
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccv3/constant"
77
)
88

99
// SecurityGroupNotBoundToSpaceError is returned when a requested security group is

actor/actionerror/service_instance_type_error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package actionerror
33
import (
44
"fmt"
55

6-
"code.cloudfoundry.org/cli/resources"
6+
"code.cloudfoundry.org/cli/v9/resources"
77
)
88

99
type ServiceInstanceTypeError struct {

0 commit comments

Comments
 (0)