pkgx: unexpected error cannot intersect: @1.6.4 && @1.5.4
Getting the following error in a random fashion as i move through terraform codebases
Error
$ terraform fmt -recursive
× unexpected error cannot intersect: @1.6.4 && @1.5.4
│ Error: cannot intersect: @1.6.4 && @1.5.4
│ at Module.intersect (https://deno.land/x/libpkgx@v0.15.0/src/utils/semver.ts:382:30)
│ at condense (https://deno.land/x/libpkgx@v0.15.0/src/plumbing/hydrate.ts:78:33)
│ at hydrate (https://deno.land/x/libpkgx@v0.15.0/src/plumbing/hydrate.ts:13:15)
│ at file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/prefab/install.ts:10:60
│ at failsafe (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/prefab/failsafe.ts:5:18)
│ at default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/prefab/install.ts:10:47)
│ at eventLoopTick (ext:core/01_core.js:178:11)
│ at async default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/modes/x.ts:30:18)
│ at async default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/app.ts:48:11)
│ at async file:///Users/builder/actions-runner/_work/pkgx/pkgx/entrypoint.ts:59:3
╰─➤ https://github.com/pkgxdev/pkgx/issues/new
Workaround
Do dev off
and then run dev
About this issue
- Original URL
- State: open
- Created 6 months ago
- Reactions: 2
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Allow multiple unicodes Fixes https://github.com/pkgxdev/pantry/issues/4104 Refs https://github.com/pkgxdev/pkgx/issues/899 — committed to pkgxdev/libpkgx by mxcl 5 months ago
- Allow multiple unicodes (#61) * Fixes https://github.com/pkgxdev/pantry/issues/4104 * Refs https://github.com/pkgxdev/pkgx/issues/899 — committed to pkgxdev/libpkgx by mxcl 5 months ago
I hit this too today, I would think it’s related, but otherwise I’ll open another issue. Tried to run
pkgx psql
in a folder with some packages already, and got:Output of
env
:pkgx.yaml:
basically this code needs to know if it’s going from one dev-env to another, rather than within a single dev-env. your test case looks something like this:
i think.