diff --git a/src/index.ts b/src/index.ts index 9021ffe4..bee34e3e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,8 +76,7 @@ export class CdktfProviderProject extends cdk.JsiiProject { mavenEndpoint: "https://hashicorp.oss.sonatype.org", }, publishToGo: { - moduleName: providerName, - githubRepo: `github.com/hashicorp/cdktf-provider-${providerName}-go`, + moduleName: `github.com/hashicorp/cdktf-provider-${providerName}-go`, gitUserEmail: "github-team-tf-cdk@hashicorp.com", gitUserName: "CDK for Terraform Team", }, @@ -120,6 +119,9 @@ export class CdktfProviderProject extends cdk.JsiiProject { }, }); + // workaround because JsiiProject does not support setting packageName + this.manifest.jsii.targets.go.packageName = providerName; + this.tasks.addEnvironment("CHECKPOINT_DISABLE", "1"); new CdktfConfig(this, { diff --git a/test/__snapshots__/index.test.ts.snap b/test/__snapshots__/index.test.ts.snap index 244c4e45..565206a8 100644 --- a/test/__snapshots__/index.test.ts.snap +++ b/test/__snapshots__/index.test.ts.snap @@ -563,7 +563,6 @@ jobs: - name: Release run: npx -p jsii-release@latest jsii-release-golang env: - GITHUB_REPO: github.com/hashicorp/cdktf-provider-random-go GIT_USER_NAME: CDK for Terraform Team GIT_USER_EMAIL: github-team-tf-cdk@hashicorp.com GITHUB_TOKEN: \${{ secrets.GO_GITHUB_TOKEN }} @@ -1722,7 +1721,8 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c "packageId": "HashiCorp.Cdktf.Providers.Random", }, "go": Object { - "moduleName": "random", + "moduleName": "github.com/hashicorp/cdktf-provider-random-go", + "packageName": "random", }, "java": Object { "maven": Object {