Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all pu/pu dependencies #778

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,7 @@ jobs:

git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}

cd provider

go get github.com/pulumi/pulumi/pkg/v3

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ../sdk

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ..
for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done
VenelinMartinov marked this conversation as resolved.
Show resolved Hide resolved

git update-index -q --refresh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,7 @@ jobs:

git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}

cd provider

go get github.com/pulumi/pulumi/pkg/v3

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ../sdk

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ..
for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done

git update-index -q --refresh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,7 @@ jobs:

git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}

cd provider

go get github.com/pulumi/pulumi/pkg/v3

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ../sdk

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ..
for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done

git update-index -q --refresh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,7 @@ jobs:

git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}

cd provider

go get github.com/pulumi/pulumi/pkg/v3

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ../sdk

go get github.com/pulumi/pulumi/sdk/v3

go mod download

go mod tidy

cd ..
for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done

git update-index -q --refresh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,7 @@ jobs:

git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}

cd provider

go get github.com/pulumi/pulumi/pkg/v3

go get github.com/pulumi/pulumi/sdk/v3

cd ../sdk

go get github.com/pulumi/pulumi/sdk/v3

cd ..

make ensure
for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done

git update-index -q --refresh

Expand Down
32 changes: 2 additions & 30 deletions native-provider-ci/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,43 +894,15 @@ export function CodegenDuringSDKBuild(provider: string) {
return {};
}

export function UpdatePulumi(provider: string): Step {
if (provider === "kubernetes") {
return {
name: "Update Pulumi/Pulumi",
id: "gomod",
run:
"git config --local user.email 'bot@pulumi.com'\n" +
"git config --local user.name 'pulumi-bot'\n" +
"git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}\n" +
"cd provider\n" +
"go get github.com/pulumi/pulumi/pkg/v3\n" +
"go get github.com/pulumi/pulumi/sdk/v3\n" +
"cd ../sdk\n" +
"go get github.com/pulumi/pulumi/sdk/v3\n" +
"cd ..\n" +
"make ensure\n" +
"git update-index -q --refresh\n" +
"if ! git diff-files --quiet; then \n\techo ::set-output name=changes::1 \nfi",
};
}
export function UpdatePulumi(): Step {
return {
name: "Update Pulumi/Pulumi",
id: "gomod",
run:
"git config --local user.email 'bot@pulumi.com'\n" +
"git config --local user.name 'pulumi-bot'\n" +
"git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}\n" +
"cd provider\n" +
"go get github.com/pulumi/pulumi/pkg/v3\n" +
"go get github.com/pulumi/pulumi/sdk/v3\n" +
"go mod download\n" +
"go mod tidy\n" +
"cd ../sdk\n" +
"go get github.com/pulumi/pulumi/sdk/v3\n" +
"go mod download\n" +
"go mod tidy\n" +
"cd ..\n" +
"for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done\n" +
"git update-index -q --refresh\n" +
"if ! git diff-files --quiet; then \n\techo ::set-output name=changes::1 \nfi",
};
Expand Down
2 changes: 1 addition & 1 deletion native-provider-ci/src/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ export class WeeklyPulumiUpdate implements NormalJob {
steps.InstallDotNet(),
steps.InstallNodeJS(),
steps.InstallPython(),
steps.UpdatePulumi(opts.provider),
steps.UpdatePulumi(),
steps.InitializeSubModules(opts.submodules),
steps.ProviderWithPulumiUpgrade(opts.provider),
steps.CreateUpdatePulumiPR(),
Expand Down
Loading