diff --git a/Makefile b/Makefile index 017d999..0922fd1 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,8 @@ build-wasm: build/preview.wasm # TODO: remove vendoring workaround build/preview.wasm: $(GO_SRC_FILES) - cd preview && go mod vendor - (find preview/vendor -name "*.go" -type f -exec sed -i 's/os\.Getwd()/"", nil/g' {} +) + cd preview GOOS=js GOARCH=wasm go build -C ./preview -o ../public/build/preview.wasm - rm -rf preview/vendor .PHONY: gen-types gen-types: src/gen/types.ts diff --git a/preview/go.mod b/preview/go.mod index 624eb4b..3750584 100644 --- a/preview/go.mod +++ b/preview/go.mod @@ -4,7 +4,8 @@ go 1.24.3 require ( github.com/coder/guts v1.5.0 - github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652 + github.com/coder/preview v1.0.3-0.20250701142654-c3d6e86b9393 + github.com/google/uuid v1.6.0 github.com/hashicorp/hcl/v2 v2.23.0 github.com/spf13/afero v1.14.0 ) @@ -31,7 +32,7 @@ require ( github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 // indirect - github.com/coder/terraform-provider-coder/v2 v2.5.3 // indirect + github.com/coder/terraform-provider-coder/v2 v2.8.0 // indirect github.com/dlclark/regexp2 v1.11.4 // indirect github.com/dop251/goja v0.0.0-20241024094426-79f3a7efcdbd // indirect github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect @@ -47,7 +48,6 @@ require ( github.com/google/go-cmp v0.7.0 // indirect github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7 // indirect github.com/google/s2a-go v0.1.9 // indirect - github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect github.com/googleapis/gax-go/v2 v2.14.1 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect diff --git a/preview/go.sum b/preview/go.sum index 394b432..476bc5e 100644 --- a/preview/go.sum +++ b/preview/go.sum @@ -707,10 +707,10 @@ github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 h1:Om6kYQYDUk5wWbT0t0q github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= github.com/coder/guts v1.5.0 h1:a94apf7xMf5jDdg1bIHzncbRiTn3+BvBZgrFSDbUnyI= github.com/coder/guts v1.5.0/go.mod h1:0Sbv5Kp83u1Nl7MIQiV2zmacJ3o02I341bkWkjWXSUQ= -github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652 h1:GukgWbsop8A3vZXXwYtjJfLOIgLygvFw8I6BF0UuvNo= -github.com/coder/preview v0.0.2-0.20250604144457-c9862a17f652/go.mod h1:nXz3bBwbU8/9NYI4OISUsoLDFlEREtTozYhJq6FAE8E= -github.com/coder/terraform-provider-coder/v2 v2.5.3 h1:EwqIIQKe/j8bsR4WyDJ3bD0dVdkfVqJ43TwClyGneUU= -github.com/coder/terraform-provider-coder/v2 v2.5.3/go.mod h1:kqP2MW/OF5u3QBRPDt84vn1izKjncICFfv26nSb781I= +github.com/coder/preview v1.0.3-0.20250701142654-c3d6e86b9393 h1:l+m2liikn8JoEv6C22QIV4qseolUfvNsyUNA6JJsD6Y= +github.com/coder/preview v1.0.3-0.20250701142654-c3d6e86b9393/go.mod h1:efDWGlO/PZPrvdt5QiDhMtTUTkPxejXo9c0wmYYLLjM= +github.com/coder/terraform-provider-coder/v2 v2.8.0 h1:pbWfegCPI0v8eATgE8kGwIyuaMPgMRIcdLF2GTVkgG0= +github.com/coder/terraform-provider-coder/v2 v2.8.0/go.mod h1:WrdLSbihuzH1RZhwrU+qmkqEhUbdZT/sjHHdarm5b5g= github.com/coder/trivy v0.0.0-20250527170238-9416a59d7019 h1:MHkv/W7l9eRAN9gOG0qZ1TLRGWIIfNi92273vPAQ8Fs= github.com/coder/trivy v0.0.0-20250527170238-9416a59d7019/go.mod h1:eqk+w9RLBmbd/cB5XfPZFuVn77cf/A6fB7qmEVeSmXk= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= diff --git a/public/build/preview.wasm b/public/build/preview.wasm index bf2fec4..6060a20 100755 Binary files a/public/build/preview.wasm and b/public/build/preview.wasm differ