Skip to content

Commit 923b688

Browse files
authored
Merge pull request #68 from coder/stevenmasley/deps
chore: Update dependency of `terraform-provider-coder`
2 parents d9fbaaa + 12af746 commit 923b688

File tree

39 files changed

+76
-8
lines changed

39 files changed

+76
-8
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/aquasecurity/trivy v0.58.2
1010
github.com/coder/guts v1.0.2-0.20250227211802-139809366a22
1111
github.com/coder/serpent v0.10.0
12-
github.com/coder/terraform-provider-coder/v2 v2.3.1-0.20250407164559-8356ff71938b
12+
github.com/coder/terraform-provider-coder/v2 v2.4.0-pre0
1313
github.com/coder/websocket v1.8.13
1414
github.com/go-chi/chi v4.1.2+incompatible
1515
github.com/google/uuid v1.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,8 @@ github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx
718718
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0/go.mod h1:5UuS2Ts+nTToAMeOjNlnHFkPahrtDkmpydBen/3wgZc=
719719
github.com/coder/serpent v0.10.0 h1:ofVk9FJXSek+SmL3yVE3GoArP83M+1tX+H7S4t8BSuM=
720720
github.com/coder/serpent v0.10.0/go.mod h1:cZFW6/fP+kE9nd/oRkEHJpG6sXCtQ+AX7WMMEHv0Y3Q=
721-
github.com/coder/terraform-provider-coder/v2 v2.3.1-0.20250407164559-8356ff71938b h1:FTCKE+v4So2jaiBTgXXM7KPv002ayhOGlNSUWaNEGm0=
722-
github.com/coder/terraform-provider-coder/v2 v2.3.1-0.20250407164559-8356ff71938b/go.mod h1:X28s3rz+aEM5PkBKvk3xcUrQFO2eNPjzRChUg9wb70U=
721+
github.com/coder/terraform-provider-coder/v2 v2.4.0-pre0 h1:NPt2+FVr+2QJoxrta5ZwyTaxocWMEKdh2WpIumffxfM=
722+
github.com/coder/terraform-provider-coder/v2 v2.4.0-pre0/go.mod h1:X28s3rz+aEM5PkBKvk3xcUrQFO2eNPjzRChUg9wb70U=
723723
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
724724
github.com/coder/websocket v1.8.13/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
725725
github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=

scripts/testdata_version.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
# Check if a version argument is provided
4+
if [ "$#" -ne 1 ]; then
5+
echo "Usage: $0 <version_argument>"
6+
echo "This script will update the version of the coder provider in all .tf files in the ./testdata/ directory."
7+
exit 1
8+
fi
9+
10+
# Check if the git status is clean in the ./testdata directory
11+
if ! git diff --quiet -- ./testdata; then
12+
echo "Error: Your git status is dirty in the ./testdata directory. Please commit or stash your changes before running this script."
13+
exit 1
14+
fi
15+
16+
VERSION_ARGUMENT=$1
17+
18+
# Find and replace the string in all .tf files in the ./testdata/ directory, excluding any directories with .terraform
19+
find ./testdata/ -type f -name "*.tf" ! -path "*/.terraform/*" -exec sed -i.bak "/coder = {/{
20+
# Capture the entire coder block
21+
:a
22+
N
23+
/}/!ba
24+
# Remove any existing version lines
25+
s|[ ]*version[ ]*=[^\\n]*\\n||g
26+
# Replace the coder block with the new format
27+
s| coder = {\n.*}| coder = {\n source = \"coder/coder\"\n version = \"$VERSION_ARGUMENT\"\n }|
28+
}" {} +
29+
30+
# Remove backup files
31+
find ./testdata/ -type f -name "*.bak" -exec rm {} +
32+
33+
echo "Replacement complete."

testdata/badparam/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
}
78
}

testdata/conditional/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
}
78
}

testdata/connections/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ terraform {
1111
required_providers {
1212
coder = {
1313
source = "coder/coder"
14+
version = "2.4.0-pre0"
1415
}
1516
}
1617
}

testdata/count/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
null = {
78
source = "hashicorp/null"

testdata/countsub/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
}
78
}

testdata/cyclical/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
}
78
}

testdata/defexpression/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5+
version = "2.4.0-pre0"
56
}
67
docker = {
78
source = "kreuzwerker/docker"

0 commit comments

Comments
 (0)