Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug: go113 Cloud Function environment prevent using OPA version after v0.29.3 #220

Closed
BrunoReboul opened this issue Oct 6, 2021 · 0 comments · Fixed by #221
Closed

Bug: go113 Cloud Function environment prevent using OPA version after v0.29.3 #220

BrunoReboul opened this issue Oct 6, 2021 · 0 comments · Fixed by #221
Assignees
Labels
type: bug Error or flaw in code with unintended results

Comments

@BrunoReboul
Copy link
Owner

OPA version v0.29.4 and above imports the go package fstest which appears with go 1.16beta1.

Google Cloud functions go113 runtime related to go v1.13,15 leading to the following error when building-deploying the function:
cannot find module providing package testing/fstest

Last OPA version to use without this issue is v0.29.3 released on 2021-05-28
Current OPA version is v0.33.1 released 2021-10-04

Proposed solution:

  • short team: Upgrate Cloud Function runtime env to go116, currently in preview (go 1.16.7)
  • long term: move out of cloud function to cloud run to remove the constraint on language / version. enabling to use go 1.17.1 (current version)
@BrunoReboul BrunoReboul added the type: bug Error or flaw in code with unintended results label Oct 6, 2021
@BrunoReboul BrunoReboul self-assigned this Oct 6, 2021
@BrunoReboul BrunoReboul linked a pull request Oct 6, 2021 that will close this issue
@BrunoReboul BrunoReboul mentioned this issue Oct 6, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: bug Error or flaw in code with unintended results
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant