Open IfSentient opened 1 year ago
Thanks for the issue!
IMO the simplest fix here is probably just not calling the provided ImportMapper
func for all cue stdlib package imports. If needed, we could allow also providing mappings for stdlib packages in a later change.
When creating a lineage which imports a piece of the CUE standard library, such as
time
, cuetsy errors on codegen with:Example CUE lineage file:
Currently, this can be remedied with a custom import mapper in the
cuetsy.Config
, or usingcuetsy.IgnoreImportMapper
, so it doesn't block codegen.