Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: pacmak fails to add a local "replace" directive when using an unreleased version of jsii #2775

Closed
1 of 5 tasks
eladb opened this issue Apr 6, 2021 · 1 comment
Closed
1 of 5 tasks
Assignees
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@eladb
Copy link
Contributor

eladb commented Apr 6, 2021

🐛 Bug Report

Affected Languages

  • TypeScript or Javascript
  • Python
  • Java
  • .NET (C#, F#, ...)
  • Go

General Information

  • JSII Version: 1.26.0
  • Platform: any

What is the problem?

When trying to build Go bindings using an unreleased version of jsii-pacmak (e.g. in the jsii integ tests), the generated local.go.mod points to a non-existent version of github.com/aws/jsii-runtime-go.

This results in the following error (requires -vvv):

go: github.com/aws/[email protected]: reading github.com/aws/jsii-runtime-go/go.mod at revision v1.27.0: unknown revision v1.27.0

There is an additional error but it seems like a red herring:

(node:57300) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'local.go.mod'

We need the logic that generates the local.go.mod file to add a replace directive which points to the non-released version.

@eladb eladb added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 6, 2021
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants