Compare commits

..

1 Commits

Author SHA1 Message Date
Ian Wahbe
fd6d348145 Update the dotnet codegen import path
This is follow-up work for https://github.com/pulumi/pulumi/issues/21638.
2026-02-09 14:28:33 +01:00
19 changed files with 892 additions and 734 deletions

View File

@@ -8,7 +8,8 @@ PULUMI_HOME = "{{config_root}}/.pulumi"
[tools]
# Runtimes
go = "{{ env.GO_VERSION_MISE }}"
# TODO: we may not need 'get_env' once https://github.com/jdx/mise/discussions/6339 is fixed
go = "{{ get_env(name='GO_VERSION_MISE', default='latest') }}"
node = '20.19.5'
python = '3.11.8'
"vfox:version-fox/vfox-dotnet" = "8.0.20" # vfox backend doesn't work on Windows, gives "error converting Lua table to PreInstall (no version returned from vfox plugin)" https://github.com/jdx/mise/discussions/5876 https://github.com/jdx/mise/discussions/5550
@@ -16,7 +17,7 @@ python = '3.11.8'
java = 'corretto-11'
# Executable tools
"github:pulumi/pulumi" = "{{ env.PULUMI_VERSION_MISE }}"
"github:pulumi/pulumi" = "{{ get_env(name='PULUMI_VERSION_MISE', default='latest') }}"
"github:pulumi/pulumictl" = '0.0.50'
"github:pulumi/schema-tools" = "0.6.0"
"aqua:gradle/gradle-distributions" = '7.6.6'

View File

@@ -14,13 +14,14 @@ runs:
using: "composite"
steps:
- name: Setup mise
uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310
uses: blampe/mise-action@blampe/plugins
env:
MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s
with:
version: 2026.2.10
version: 2026.1.1
cache_save: ${{ inputs.cache }}
github_token: ${{ inputs.github_token }}
plugin_install: https://github.com/pulumi/vfox-pulumi
- name: Setup Go Cache
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0

View File

@@ -56,12 +56,13 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
run: gh pr checkout "$PR_NUMBER"
- name: Setup mise
uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310
uses: blampe/mise-action@blampe/plugins
env:
MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s
with:
version: 2026.2.10
version: 2026.1.1
github_token: ${{ secrets.GITHUB_TOKEN }}
plugin_install: https://github.com/pulumi/vfox-pulumi
# only saving the cache in the prerequisites job
cache_save: false
- name: Prepare local workspace

View File

@@ -1,4 +1,4 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
name: lint
@@ -7,6 +7,15 @@ on:
inputs: {}
env:
PROVIDER: docker-build
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
TRAVIS_OS_NAME: linux
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
GOVERSION: "1.21.x"
NODEVERSION: "20.x"
PYTHONVERSION: "3.11.8"
DOTNETVERSION: "8.0.x"
JAVAVERSION: "11"
ARM_CLIENT_ID: 30e520fa-12b4-4e21-b473-9426c5ac2e1e
ARM_SUBSCRIPTION_ID: 0282681f-7a9e-424b-80b2-96babd57a8a1
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
@@ -20,49 +29,29 @@ env:
GOOGLE_REGION: us-central1
GOOGLE_ZONE: us-central1-a
PULUMI_API: https://api.pulumi-staging.io
PULUMI_PULUMI_ENABLE_JOURNALING: "true"
jobs:
lint:
name: lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write # For ESC secrets.
steps:
- name: Checkout Repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
lfs: true
persist-credentials: false
- env:
ESC_ACTION_ENVIRONMENT: github-secrets/${{ github.repository_owner }}-${{ github.event.repository.name }}
ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES: "false"
ESC_ACTION_OIDC_AUTH: "true"
ESC_ACTION_OIDC_ORGANIZATION: pulumi
ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE: urn:pulumi:token-type:access_token:organization
id: esc-secrets
name: Fetch secrets from ESC
uses: pulumi/esc-action@9eb774255b1a4afb7855678ae8d4a77359da0d9b
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: app-auth
ref: ${{ env.PR_COMMIT_SHA }}
- name: Setup Tools
uses: ./.github/actions/setup-tools
with:
app-id: ${{ steps.esc-secrets.outputs.PULUMI_PROVIDER_AUTOMATION_APP_ID }}
private-key: ${{ steps.esc-secrets.outputs.PULUMI_PROVIDER_AUTOMATION_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Setup mise
uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310
env:
MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s
with:
version: 2026.2.10
github_token: ${{ steps.app-auth.outputs.token }}
cache_save: false # A different job handles caching our tools.
- name: prepare workspace
continue-on-error: true
run: make prepare_local_workspace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: lint
run: make lint
- name: Disarm go:embed directives to enable linters that compile source code
run: git grep -l 'go:embed' -- provider | xargs --no-run-if-empty sed -i
's/go:embed/ goembed/g'
- name: golangci-lint provider pkg
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
with:
install-mode: none # Handled by mise.
working-directory: .
name: lint
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository

View File

@@ -536,8 +536,26 @@ jobs:
- prerequisites
- lint
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
lfs: true
persist-credentials: false
ref: ${{ env.PR_COMMIT_SHA }}
- name: Setup Tools
uses: ./.github/actions/setup-tools
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Disarm go:embed directives to enable linters that compile source code
run: git grep -l 'go:embed' -- provider | xargs --no-run-if-empty sed -i
's/go:embed/ goembed/g'
- name: golangci-lint provider pkg
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
with:
install-mode: none # Handled by mise.
working-directory: .
name: lint
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: lint
uses: ./.github/workflows/lint.yml
secrets: inherit

View File

@@ -1,32 +1,39 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
run:
timeout: 10m
linters:
enable-all: false
enable:
- depguard
- errcheck
- exhaustive
- copyloopvar
- gci
- goconst
- gofmt
- gocritic
- gofumpt
- goheader
- gosec
- govet
- importas
- ineffassign
- lll
- gosimple
- staticcheck
- misspell
- nakedret
- nolintlint
- paralleltest
- perfsprint
- prealloc
- revive
- unconvert
- unused
enable-all: false
issues:
exclude-dirs:
- pkg/vendored
exclude-files:
- schema.go
- pulumiManifest.go
run:
timeout: 20m
linters-settings:
depguard:
rules:
protobuf:
deny:
- pkg: "github.com/golang/protobuf"
desc: Use google.golang.org/protobuf instead
gci:
sections:
- standard # Standard section: captures all standard library packages.
@@ -35,3 +42,63 @@ linters-settings:
- prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix.
- prefix(github.com/pulumi/pulumi-docker-build) # Custom section: local imports
custom-order: true
gocritic:
enable-all: true
disabled-checks:
- hugeParam
- importShadow
goheader:
template: |-
Copyright 2024, Pulumi Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
govet:
enable:
- nilness
# Reject comparisons of reflect.Value with DeepEqual or '=='.
- reflectvaluecompare
# Reject sort.Slice calls with a non-slice argument.
- sortslice
# Detect write to struct/arrays by-value that aren't read again.
- unusedwrite
nakedret:
# Make an issue if func has more lines of code than this setting, and it has naked returns.
# Default: 30
max-func-lines: 60
nolintlint:
# Some linter exclusions are added to generated or templated files
# pre-emptively.
# Don't complain about these.
allow-unused: true
issues:
exclude-use-default: false
exclude-rules:
# Don't warn on unused parameters.
# Parameter names are useful; replacing them with '_' is undesirable.
- linters: [revive]
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _'
# staticcheck already has smarter checks for empty blocks.
# revive's empty-block linter has false positives.
# For example, as of writing this, the following is not allowed.
# for foo() { }
- linters: [revive]
text: "empty-block: this block is empty, you can remove it"
# We *frequently* use the term 'new' in the context of properties
# (new and old properties),
# and we rarely use the 'new' built-in function.
# It's fine to ignore these cases.
- linters: [revive]
text: "redefines-builtin-id: redefinition of the built-in function new"

View File

@@ -182,7 +182,6 @@ bin/${PROVIDER}: $(shell find ./provider -name '*.go') go.mod
(cd provider && go build -o ../bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION_GENERIC}" $(PROJECT)/${PROVIDER_PATH}/cmd/$(PROVIDER))
bin/pulumi-gen-${PACK}: # Required by CI
@mkdir -p bin
touch bin/pulumi-gen-${PACK}
go.mod: $(shell find . -name '*.go')
@@ -258,7 +257,6 @@ AZURE_SIGNING_KEY_VAULT_URI ?=
SKIP_SIGNING ?=
bin/jsign-6.0.jar:
@mkdir -p bin
wget https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0.jar --output-document=bin/jsign-6.0.jar
sign-goreleaser-exe-amd64: GORELEASER_ARCH := amd64_v1

View File

@@ -33,7 +33,7 @@ require (
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/go-git/go-git/v5 v5.16.5 // indirect
github.com/go-git/go-git/v5 v5.16.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.4 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
@@ -62,7 +62,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pkg/term v1.1.0 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.22.0 // indirect
github.com/pulumi/esc v0.21.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect

View File

@@ -67,8 +67,8 @@ github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UN
github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
github.com/go-git/go-git/v5 v5.16.5 h1:mdkuqblwr57kVfXri5TTH+nMFLNUxIj9Z7F5ykFbw5s=
github.com/go-git/go-git/v5 v5.16.5/go.mod h1:QOMLpNf1qxuSY4StA/ArOdfFR2TrKEjJiye2kel2m+M=
github.com/go-git/go-git/v5 v5.16.0 h1:k3kuOEpkc0DeY7xlL6NaaNg39xdgQbtH5mwCafHO9AQ=
github.com/go-git/go-git/v5 v5.16.0/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
@@ -157,8 +157,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA=
github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk=
github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12 h1:uzmw+0iic764m0Yvh4I/jRV1x3q49dVh5Ctq9RllsQ8=
github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12/go.mod h1:6zFMe786NvFDO03BVJwdw1R/Yms4F6vAU49iBHo8zbQ=
github.com/pulumi/pulumi/sdk/v3 v3.209.0 h1:Ti0FohAset2HEgogTxTOWoyvQd2N2+pkTSIn5DW3W7s=

View File

@@ -5,6 +5,6 @@
},
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "3.220.0"
"@pulumi/pulumi": "3.219.0"
}
}

View File

@@ -4,6 +4,6 @@
"@types/node": "^20.0.0"
},
"dependencies": {
"@pulumi/pulumi": "3.220.0"
"@pulumi/pulumi": "3.219.0"
}
}

View File

@@ -368,10 +368,10 @@
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==
"@pulumi/pulumi@3.220.0":
version "3.220.0"
resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.220.0.tgz#27e12fa10048f1beae0ca97a005826a784190201"
integrity sha512-WfFu4Qv5r/9uv4bh6jxZPKLc945RtdjIq29mDa6c9sIXzQtRtv/Voo58E6u6lhA1RKaK+ocymqgykZ6QV7OnGQ==
"@pulumi/pulumi@3.219.0":
version "3.219.0"
resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.219.0.tgz#23bbb6caf2845d6bbc20b22f72bae6d3f157c57a"
integrity sha512-0AO1ZBJooKALToZYvPj/93PpToGA2rEKvIGQi95zNHevTTC3ibQrKXJDLwQzjHy6HZrON2jbxzakKrU4C2w+hA==
dependencies:
"@grpc/grpc-js" "^1.10.1"
"@logdna/tail-file" "^2.0.6"

View File

@@ -4,6 +4,6 @@
"@types/node": "^20.0.0"
},
"dependencies": {
"@pulumi/pulumi": "3.220.0"
"@pulumi/pulumi": "3.219.0"
}
}

View File

@@ -5,6 +5,6 @@
},
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "3.220.0"
"@pulumi/pulumi": "3.219.0"
}
}

10
go.mod
View File

@@ -14,11 +14,11 @@ require (
github.com/muesli/reflow v0.3.0
github.com/otiai10/copy v1.14.0
github.com/pulumi/providertest v0.6.0
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.100.0
github.com/pulumi/pulumi-go-provider v1.3.0
github.com/pulumi/pulumi-java/pkg v1.16.0
github.com/pulumi/pulumi/pkg/v3 v3.220.0
github.com/pulumi/pulumi/sdk/v3 v3.220.0
github.com/pulumi/pulumi/pkg/v3 v3.219.1-0.20260208071218-1bd84f1343e1
github.com/pulumi/pulumi/sdk/v3 v3.219.1-0.20260208071218-1bd84f1343e1
github.com/regclient/regclient v0.7.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/afero v1.14.0
@@ -121,7 +121,7 @@ require (
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/go-git/go-git/v5 v5.16.5 // indirect
github.com/go-git/go-git/v5 v5.16.0 // indirect
github.com/go-jose/go-jose/v3 v3.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
@@ -226,7 +226,7 @@ require (
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.22.0 // indirect
github.com/pulumi/esc v0.21.0 // indirect
github.com/pulumi/inflector v0.2.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect

20
go.sum
View File

@@ -263,8 +263,8 @@ github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UN
github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
github.com/go-git/go-git/v5 v5.16.5 h1:mdkuqblwr57kVfXri5TTH+nMFLNUxIj9Z7F5ykFbw5s=
github.com/go-git/go-git/v5 v5.16.5/go.mod h1:QOMLpNf1qxuSY4StA/ArOdfFR2TrKEjJiye2kel2m+M=
github.com/go-git/go-git/v5 v5.16.0 h1:k3kuOEpkc0DeY7xlL6NaaNg39xdgQbtH5mwCafHO9AQ=
github.com/go-git/go-git/v5 v5.16.0/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
github.com/go-jose/go-jose/v3 v3.0.4 h1:Wp5HA7bLQcKnf6YYao/4kpRpVMp/yf6+pJKV8WFSaNY=
github.com/go-jose/go-jose/v3 v3.0.4/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
@@ -598,22 +598,22 @@ github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0leargg
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA=
github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk=
github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/inflector v0.2.1 h1:bqyiish3tq//vLeLiEstSFE5K7RNjy/ce47ed4QATu8=
github.com/pulumi/inflector v0.2.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY=
github.com/pulumi/providertest v0.6.0 h1:ZnefsbhkPE+BpKienHgb38P/6SEtXjjOXGGdMEUIOgk=
github.com/pulumi/providertest v0.6.0/go.mod h1:OBpIGSQrw1FW9VNaHBtKCRxEoTISvx8JsxECmRqRgRQ=
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0 h1:1VGECdAuWEJ6cTsxFmpcUcpu0nBt9Ze8fHI/+1DgSio=
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.101.0/go.mod h1:m3hX/6Ia3vYwLc5I/z+i4SH73q8Lu3xY8NLuS1JaTiw=
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.100.0 h1:vClTE1Z9N3CFXsFFu+fu3RtU/5rgHQXN1yB/yzPRYu0=
github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.100.0/go.mod h1:m3hX/6Ia3vYwLc5I/z+i4SH73q8Lu3xY8NLuS1JaTiw=
github.com/pulumi/pulumi-go-provider v1.3.0 h1:y5vQal1PaxdwpNWk5OFqc/6yLPpNJNnA1eY80mnWaQ0=
github.com/pulumi/pulumi-go-provider v1.3.0/go.mod h1:5k36le9qSSlcpHwkL56HQhSXTHskhHhrrJ+x4dsVavo=
github.com/pulumi/pulumi-java/pkg v1.16.0 h1:8KCiIXWv2uxfIks0SdgOezyXg4HZIoPfHID9eMg4nuM=
github.com/pulumi/pulumi-java/pkg v1.16.0/go.mod h1:VeMZ1s9LfXBypao4A1tRF3EB7fYnYZ1LwImyg6FBX0c=
github.com/pulumi/pulumi/pkg/v3 v3.220.0 h1:M2mg8ohi8HEceoub+5YSNxCgQ6WY/ycdeMzc0uZmlWI=
github.com/pulumi/pulumi/pkg/v3 v3.220.0/go.mod h1:RjLYZtdMcBn6qmAWF5HFy4Xw8U/nwsL9QdirtETkarU=
github.com/pulumi/pulumi/sdk/v3 v3.220.0 h1:TtdlW2VfvBWhFZSvaDN9lSUlSS4gGSdNWdca3RGPsBQ=
github.com/pulumi/pulumi/sdk/v3 v3.220.0/go.mod h1:UGWJOz25OiFIN0QH79UFij8mffH94TYebKUgy9Wvug0=
github.com/pulumi/pulumi/pkg/v3 v3.219.1-0.20260208071218-1bd84f1343e1 h1:dB6mvlr9GniWvs9yYHFe0jsrHfe4lQ3Si1/ZyeF9H/c=
github.com/pulumi/pulumi/pkg/v3 v3.219.1-0.20260208071218-1bd84f1343e1/go.mod h1:cxmMnghuTrmDGqO+kMTFisJQ5WTIfS+i01Eang6zKKI=
github.com/pulumi/pulumi/sdk/v3 v3.219.1-0.20260208071218-1bd84f1343e1 h1:58jlG8mvJ3Ko2nIlWlVHmldsIqqP5k+gmNKRFlqPMes=
github.com/pulumi/pulumi/sdk/v3 v3.219.1-0.20260208071218-1bd84f1343e1/go.mod h1:ZOBPPC2NZOZf729AdCX+CctfNc5SN6aJh0bdqNdzQC4=
github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E=
github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw=
github.com/regclient/regclient v0.7.1 h1:qEsJrTmZd98fZKjueAbrZCSNGU+ifnr6xjlSAs3WOPs=

View File

@@ -4,7 +4,7 @@ go 1.24.7
require (
github.com/blang/semver v3.5.1+incompatible
github.com/pulumi/pulumi/sdk/v3 v3.220.0
github.com/pulumi/pulumi/sdk/v3 v3.219.0
)
require (
@@ -33,7 +33,7 @@ require (
github.com/frankban/quicktest v1.14.6 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/go-git/go-git/v5 v5.16.5 // indirect
github.com/go-git/go-git/v5 v5.16.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.4 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
@@ -63,7 +63,7 @@ require (
github.com/pkg/term v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.22.0 // indirect
github.com/pulumi/esc v0.21.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect

View File

@@ -68,8 +68,8 @@ github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UN
github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
github.com/go-git/go-git/v5 v5.16.5 h1:mdkuqblwr57kVfXri5TTH+nMFLNUxIj9Z7F5ykFbw5s=
github.com/go-git/go-git/v5 v5.16.5/go.mod h1:QOMLpNf1qxuSY4StA/ArOdfFR2TrKEjJiye2kel2m+M=
github.com/go-git/go-git/v5 v5.16.0 h1:k3kuOEpkc0DeY7xlL6NaaNg39xdgQbtH5mwCafHO9AQ=
github.com/go-git/go-git/v5 v5.16.0/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
@@ -160,10 +160,10 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0=
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.22.0 h1:Kbk0kIPsoIu6vnLgKtiE8AKRfl8B8bg6adiQuwJiBjA=
github.com/pulumi/esc v0.22.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/pulumi/sdk/v3 v3.220.0 h1:TtdlW2VfvBWhFZSvaDN9lSUlSS4gGSdNWdca3RGPsBQ=
github.com/pulumi/pulumi/sdk/v3 v3.220.0/go.mod h1:UGWJOz25OiFIN0QH79UFij8mffH94TYebKUgy9Wvug0=
github.com/pulumi/esc v0.21.0 h1:TR8Ff22SU+z8cooTmUKkmk2FltXW/wDPrIwI9BP88Vk=
github.com/pulumi/esc v0.21.0/go.mod h1:mkghIFn/TvN3XnP4jmCB4U5BG1I4UjGluARi39ckrCE=
github.com/pulumi/pulumi/sdk/v3 v3.219.0 h1:OwTSwk1ZuOI4hQUdSccWuIAuqs4fL/FcppesPOAKHQ8=
github.com/pulumi/pulumi/sdk/v3 v3.219.0/go.mod h1:ZOBPPC2NZOZf729AdCX+CctfNc5SN6aJh0bdqNdzQC4=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=

View File

@@ -72,6 +72,9 @@ __all__ = [
'SSHArgsDict',
]
MYPY = False
if not MYPY:
class BuildContextArgsDict(TypedDict):
location: pulumi.Input[_builtins.str]
"""
@@ -93,6 +96,8 @@ class BuildContextArgsDict(TypedDict):
Values can be local paths, HTTP URLs, or `docker-image://` images.
"""
elif False:
BuildContextArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class BuildContextArgs:
@@ -156,6 +161,7 @@ class BuildContextArgs:
pulumi.set(self, "named", value)
if not MYPY:
class BuilderConfigArgsDict(TypedDict):
name: NotRequired[pulumi.Input[_builtins.str]]
"""
@@ -166,6 +172,8 @@ class BuilderConfigArgsDict(TypedDict):
Equivalent to Docker's `--builder` flag.
"""
elif False:
BuilderConfigArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class BuilderConfigArgs:
@@ -200,6 +208,7 @@ class BuilderConfigArgs:
pulumi.set(self, "name", value)
if not MYPY:
class CacheFromAzureBlobArgsDict(TypedDict):
name: pulumi.Input[_builtins.str]
"""
@@ -213,6 +222,8 @@ class CacheFromAzureBlobArgsDict(TypedDict):
"""
Blob storage account key.
"""
elif False:
CacheFromAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromAzureBlobArgs:
@@ -268,6 +279,7 @@ class CacheFromAzureBlobArgs:
pulumi.set(self, "secret_access_key", value)
if not MYPY:
class CacheFromGitHubActionsArgsDict(TypedDict):
"""
Recommended for use with GitHub Actions workflows.
@@ -282,6 +294,8 @@ class CacheFromGitHubActionsArgsDict(TypedDict):
This should be set if building and caching multiple images in one
workflow, otherwise caches will overwrite each other.
"""
elif False:
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromGitHubActionsArgs:
@@ -318,6 +332,7 @@ class CacheFromGitHubActionsArgs:
pulumi.set(self, "scope", value)
if not MYPY:
class CacheFromLocalArgsDict(TypedDict):
src: pulumi.Input[_builtins.str]
"""
@@ -327,6 +342,8 @@ class CacheFromLocalArgsDict(TypedDict):
"""
Digest of manifest to import.
"""
elif False:
CacheFromLocalArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromLocalArgs:
@@ -366,11 +383,14 @@ class CacheFromLocalArgs:
pulumi.set(self, "digest", value)
if not MYPY:
class CacheFromRegistryArgsDict(TypedDict):
ref: pulumi.Input[_builtins.str]
"""
Fully qualified name of the cache image to import.
"""
elif False:
CacheFromRegistryArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromRegistryArgs:
@@ -394,6 +414,7 @@ class CacheFromRegistryArgs:
pulumi.set(self, "ref", value)
if not MYPY:
class CacheFromS3ArgsDict(TypedDict):
bucket: pulumi.Input[_builtins.str]
"""
@@ -435,6 +456,8 @@ class CacheFromS3ArgsDict(TypedDict):
"""
Uses `bucket` in the URL instead of hostname when `true`.
"""
elif False:
CacheFromS3ArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromS3Args:
@@ -609,6 +632,7 @@ class CacheFromS3Args:
pulumi.set(self, "use_path_style", value)
if not MYPY:
class CacheFromArgsDict(TypedDict):
azblob: NotRequired[pulumi.Input['CacheFromAzureBlobArgsDict']]
"""
@@ -643,6 +667,8 @@ class CacheFromArgsDict(TypedDict):
Upload build caches to AWS S3 or an S3-compatible services such as
MinIO.
"""
elif False:
CacheFromArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheFromArgs:
@@ -773,6 +799,7 @@ class CacheFromArgs:
pulumi.set(self, "s3", value)
if not MYPY:
class CacheToAzureBlobArgsDict(TypedDict):
name: pulumi.Input[_builtins.str]
"""
@@ -794,6 +821,8 @@ class CacheToAzureBlobArgsDict(TypedDict):
"""
Blob storage account key.
"""
elif False:
CacheToAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToAzureBlobArgs:
@@ -885,6 +914,7 @@ class CacheToAzureBlobArgs:
pulumi.set(self, "secret_access_key", value)
if not MYPY:
class CacheToGitHubActionsArgsDict(TypedDict):
"""
Recommended for use with GitHub Actions workflows.
@@ -907,6 +937,8 @@ class CacheToGitHubActionsArgsDict(TypedDict):
This should be set if building and caching multiple images in one
workflow, otherwise caches will overwrite each other.
"""
elif False:
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToGitHubActionsArgs:
@@ -979,11 +1011,14 @@ class CacheToGitHubActionsArgs:
pulumi.set(self, "scope", value)
if not MYPY:
class CacheToInlineArgsDict(TypedDict):
"""
Include an inline cache with the exported image.
"""
pass
elif False:
CacheToInlineArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToInlineArgs:
@@ -994,6 +1029,7 @@ class CacheToInlineArgs:
pass
if not MYPY:
class CacheToLocalArgsDict(TypedDict):
dest: pulumi.Input[_builtins.str]
"""
@@ -1019,6 +1055,8 @@ class CacheToLocalArgsDict(TypedDict):
"""
The cache mode to use. Defaults to `min`.
"""
elif False:
CacheToLocalArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToLocalArgs:
@@ -1132,6 +1170,7 @@ class CacheToLocalArgs:
pulumi.set(self, "mode", value)
if not MYPY:
class CacheToRegistryArgsDict(TypedDict):
ref: pulumi.Input[_builtins.str]
"""
@@ -1172,6 +1211,8 @@ class CacheToRegistryArgsDict(TypedDict):
Whether to use OCI media types in exported manifests. Defaults to
`true`.
"""
elif False:
CacheToRegistryArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToRegistryArgs:
@@ -1335,6 +1376,7 @@ class CacheToRegistryArgs:
pulumi.set(self, "oci_media_types", value)
if not MYPY:
class CacheToS3ArgsDict(TypedDict):
bucket: pulumi.Input[_builtins.str]
"""
@@ -1384,6 +1426,8 @@ class CacheToS3ArgsDict(TypedDict):
"""
Uses `bucket` in the URL instead of hostname when `true`.
"""
elif False:
CacheToS3ArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToS3Args:
@@ -1594,6 +1638,7 @@ class CacheToS3Args:
pulumi.set(self, "use_path_style", value)
if not MYPY:
class CacheToArgsDict(TypedDict):
azblob: NotRequired[pulumi.Input['CacheToAzureBlobArgsDict']]
"""
@@ -1634,6 +1679,8 @@ class CacheToArgsDict(TypedDict):
"""
Push cache to AWS S3 or S3-compatible services such as MinIO.
"""
elif False:
CacheToArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class CacheToArgs:
@@ -1784,6 +1831,7 @@ class CacheToArgs:
pulumi.set(self, "s3", value)
if not MYPY:
class ContextArgsDict(TypedDict):
location: pulumi.Input[_builtins.str]
"""
@@ -1796,6 +1844,8 @@ class ContextArgsDict(TypedDict):
(`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
etc.).
"""
elif False:
ContextArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ContextArgs:
@@ -1833,6 +1883,7 @@ class ContextArgs:
pulumi.set(self, "location", value)
if not MYPY:
class DockerfileArgsDict(TypedDict):
inline: NotRequired[pulumi.Input[_builtins.str]]
"""
@@ -1852,6 +1903,8 @@ class DockerfileArgsDict(TypedDict):
Conflicts with `inline`.
"""
elif False:
DockerfileArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class DockerfileArgs:
@@ -1912,8 +1965,11 @@ class DockerfileArgs:
pulumi.set(self, "location", value)
if not MYPY:
class ExportCacheOnlyArgsDict(TypedDict):
pass
elif False:
ExportCacheOnlyArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportCacheOnlyArgs:
@@ -1921,6 +1977,7 @@ class ExportCacheOnlyArgs:
pass
if not MYPY:
class ExportDockerArgsDict(TypedDict):
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]
"""
@@ -1954,6 +2011,8 @@ class ExportDockerArgsDict(TypedDict):
"""
Bundle the output into a tarball layout.
"""
elif False:
ExportDockerArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportDockerArgs:
@@ -2100,6 +2159,7 @@ class ExportDockerArgs:
pulumi.set(self, "tar", value)
if not MYPY:
class ExportImageArgsDict(TypedDict):
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]
"""
@@ -2160,6 +2220,8 @@ class ExportImageArgsDict(TypedDict):
Unpack image after creation (for use with containerd). Defaults to
`false`.
"""
elif False:
ExportImageArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportImageArgs:
@@ -2400,11 +2462,14 @@ class ExportImageArgs:
pulumi.set(self, "unpack", value)
if not MYPY:
class ExportLocalArgsDict(TypedDict):
dest: pulumi.Input[_builtins.str]
"""
Output path.
"""
elif False:
ExportLocalArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportLocalArgs:
@@ -2428,6 +2493,7 @@ class ExportLocalArgs:
pulumi.set(self, "dest", value)
if not MYPY:
class ExportOCIArgsDict(TypedDict):
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]
"""
@@ -2461,6 +2527,8 @@ class ExportOCIArgsDict(TypedDict):
"""
Bundle the output into a tarball layout.
"""
elif False:
ExportOCIArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportOCIArgs:
@@ -2607,6 +2675,7 @@ class ExportOCIArgs:
pulumi.set(self, "tar", value)
if not MYPY:
class ExportRegistryArgsDict(TypedDict):
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]
"""
@@ -2667,6 +2736,8 @@ class ExportRegistryArgsDict(TypedDict):
Unpack image after creation (for use with containerd). Defaults to
`false`.
"""
elif False:
ExportRegistryArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportRegistryArgs:
@@ -2909,11 +2980,14 @@ class ExportRegistryArgs:
pulumi.set(self, "unpack", value)
if not MYPY:
class ExportTarArgsDict(TypedDict):
dest: pulumi.Input[_builtins.str]
"""
Output path.
"""
elif False:
ExportTarArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportTarArgs:
@@ -2937,6 +3011,7 @@ class ExportTarArgs:
pulumi.set(self, "dest", value)
if not MYPY:
class ExportArgsDict(TypedDict):
cacheonly: NotRequired[pulumi.Input['ExportCacheOnlyArgsDict']]
"""
@@ -2976,6 +3051,8 @@ class ExportArgsDict(TypedDict):
"""
Export to a local directory as a tarball.
"""
elif False:
ExportArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class ExportArgs:
@@ -3132,6 +3209,7 @@ class ExportArgs:
pulumi.set(self, "tar", value)
if not MYPY:
class RegistryArgsDict(TypedDict):
address: pulumi.Input[_builtins.str]
"""
@@ -3145,6 +3223,8 @@ class RegistryArgsDict(TypedDict):
"""
Username for the registry.
"""
elif False:
RegistryArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class RegistryArgs:
@@ -3200,6 +3280,7 @@ class RegistryArgs:
pulumi.set(self, "username", value)
if not MYPY:
class SSHArgsDict(TypedDict):
id: pulumi.Input[_builtins.str]
"""
@@ -3219,6 +3300,8 @@ class SSHArgsDict(TypedDict):
agent. Run `ssh-add -l` locally to confirm which public keys are
visible to the agent; these will be exposed to your build.
"""
elif False:
SSHArgsDict: TypeAlias = Mapping[str, Any]
@pulumi.input_type
class SSHArgs: