Skip to content

Help on using Pkl for dynamic CI/CD pipelines #609

Answered by bioball
lopezm94 asked this question in Q&A
Discussion options

You must be logged in to vote

For your first problem: the error message describes the remediation steps here:

One may be defined by either:
  * Declaring a `@go.Package` annotation on the module.
  * Adding a `--mapping` flag when using the pkl-gen-go command.
  * Adding a `packageMappings` clause to generator settings.

The simplest approach is to use the --mapping flag, e.g. pkl-gen-go --mapping com.circleci.v2.Config= github.com/lopezm94/circleci_monorepo/pkl/lib/modules/cicd/circleci

For your second problem: Pkl is telling you that it doesn't know what Job is. Does module lopezm94.circleci_monorepo.pkl.defs.modules.cicd.workflow export this? Did you make a mistake here, and mean to import package://pkg.pkl-lang.or…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lopezm94
Comment options

You must be logged in to vote
3 replies
@lopezm94
Comment options

@HT154
Comment options

@lopezm94
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants