–– Pkl Error ––
Resource URI `package://localhost:0/foo#/bar.pkl` has invalid syntax.

x | res = read("package://localhost:0/foo#/bar.pkl")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at badRead1.error#res (file:///$snippetsDir/input/packages/badRead1.error.pkl)

Invalid path `/foo`.

A package URI must have its path suffixed by its version (e.g. `package://example.com/my/package@1.0.0`).

xxx | renderer.renderDocument(value)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (pkl:base)

xxx | if (renderer is BytesRenderer) renderer.renderDocument(value) else text.encodeToBytes("UTF-8")
                                                                         ^^^^
at pkl.base#Module.output.bytes (pkl:base)
