Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
649 changes: 0 additions & 649 deletions .azdo/azure-pipelines.yml

This file was deleted.

26 changes: 14 additions & 12 deletions .azdo/azurerm-schema-update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ parameters:
default: main

pool:
name: pool-ubuntu-2004
name: pool-ubuntu-2404

variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
moduleDir: '$(GOPATH)/src/github.com'
Expand All @@ -28,12 +27,19 @@ steps:
name: step1

- script: |
wget https://go.dev/dl/go1.23.3.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
go version
displayName: 'Set up the Go workspace'
set -euo pipefail
go_version="$(awk '/^go [0-9]+\.[0-9]+(\.[0-9]+)?$/ { print $2; exit }' go.mod)"
if [[ -z "${go_version}" ]]; then
echo "failed to read go version from go.mod" >&2
exit 1
fi
echo "##vso[task.setvariable variable=GO_VERSION]${go_version}"
displayName: 'Read Go version from go.mod'

- task: GoTool@0
displayName: 'Install Go from go.mod'
inputs:
version: $(GO_VERSION)

- script: |
git config --global user.email "henglu@microsoft.com"
Expand All @@ -53,17 +59,13 @@ steps:
PAT: $(PAT)

- bash: |
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
cd aztfmigrate/.tools/generate-provider-schema
pwd
chmod -R +x ./run.sh
./run.sh /mnt/vss/_work/1/s/terraform-provider-azurerm ${{ parameters.branch }}
displayName: 'Exporting AzureRM Schema'

- bash: |
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
export TAG=$(step1.TAG)
cd aztfmigrate
make fmt
Expand Down
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://docs.github.com/en/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configuring-dependabot-version-updates
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
groups:
gomod-dependencies:
patterns:
- "*"
allow:
- dependency-type: "direct"
ignore:
- dependency-name: "*"
update-types:
- "version-update:semver-major"
56 changes: 24 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
module github.com/Azure/aztfmigrate

go 1.24.0

toolchain go1.24.5
go 1.25.10

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.19.1
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.1
github.com/gertd/go-pluralize v0.2.1
github.com/golang-jwt/jwt/v4 v4.5.2
github.com/hashicorp/go-version v1.7.0
github.com/hashicorp/hc-install v0.9.0
github.com/hashicorp/hcl/v2 v2.22.0
github.com/hashicorp/terraform-exec v0.21.0
github.com/hashicorp/terraform-json v0.22.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/hashicorp/go-version v1.9.0
github.com/hashicorp/hc-install v0.9.5
github.com/hashicorp/hcl/v2 v2.24.0
github.com/hashicorp/terraform-exec v0.25.2
github.com/hashicorp/terraform-json v0.27.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.40.1
github.com/magodo/aztft v0.3.1-0.20260219230708-1e51977ce1cb
github.com/magodo/tfadd v0.10.1-0.20240902124619-bd18a56f410d
github.com/mitchellh/cli v1.1.5
github.com/zclconf/go-cty v1.15.0
github.com/zclconf/go-cty v1.18.1
)

require (
dario.cat/mergo v1.0.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.12.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.10.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v3 v3.0.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3 v3.1.0 // indirect
Expand Down Expand Up @@ -74,27 +71,23 @@ require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.3.0 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.2.0 // indirect
github.com/cloudflare/circl v1.6.0 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/go-git/go-git/v5 v5.13.2 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/go-git/go-git/v5 v5.19.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-cty v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.31.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.10.0 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/magodo/armid v0.0.0-20250724105512-5cedfa9dd8e2 // indirect
github.com/magodo/tfpluginschema v0.0.0-20240902090353-0525d7d8c1c2 // indirect
Expand All @@ -108,18 +101,17 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/skeema/knownhosts v1.3.1 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
golang.org/x/crypto v0.42.0 // indirect
golang.org/x/mod v0.27.0 // indirect
golang.org/x/net v0.44.0 // indirect
golang.org/x/sync v0.17.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.29.0 // indirect
golang.org/x/tools v0.36.0 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/mod v0.35.0 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/tools v0.43.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.34.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
)
Loading
Loading