-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected error cannot intersect: @1.6.4 && @1.5.4 #899
Comments
the only package.yml I see that mentions 1.5.4 is github.com/moretension/duti; none mention 1.6.4 that i can find. what is in your likely this is a case of trying to get multiple different terraforms into the same env. iirc, there's a very subtle bug where moving from one dev env to another doesn't always work cleanly, so that is likely what you're hitting. |
I am using only the Project A$ cat .terraform-version
1.6.4 Project B$ cat .terraform-version
1.5.4 Project C$ cat .terraform-version
0.13.7 |
so, I think this is the
|
Any ideas to fix this at a code level ? I can try contributing a PR for this |
Most likely the chdir hook in the shell needs to unload-then-load, but that could cause overhead, as well as deps changing in rare instances. |
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: mkdir -p a/b a/c
echo -e "dependencies:\n llvm.org: ^15" >a/pkgx.yml
echo -e "dependencies:\n llvm.org: ^16" >a/b/pkgx.yml
cd a
dev
test "$(clang --version)" | grep "version 15"
cd b
test "$(clang --version)" | grep "version 16"
cd c
test "$(clang --version)" | grep "version 15"
cd b
test "$(clang --version)" | grep "version 16"
cd ..
test "$(clang --version)" | grep "version 15"
cd c
test "$(clang --version)" | grep "version 15" i think. |
I hit this too today, I would think it's related, but otherwise I'll open another issue. Tried to run $ env +psql
× unexpected error cannot intersect: ^71 && ^73
│ Error: cannot intersect: ^71 && ^73
│ at Module.intersect (https://deno.land/x/[email protected]/src/utils/semver.ts:384:30)
│ at hydrate (https://deno.land/x/[email protected]/src/plumbing/hydrate.ts:51:48)
│ at eventLoopTick (ext:core/01_core.js:181:11)
│ at async failsafe (file:///Users/runner/work/pkgx/pkgx/src/prefab/failsafe.ts:5:12)
│ at async default (file:///Users/runner/work/pkgx/pkgx/src/prefab/install.ts:10:41)
│ at async default (file:///Users/runner/work/pkgx/pkgx/src/modes/internal.use.ts:16:20)
│ at async default (file:///Users/runner/work/pkgx/pkgx/src/app.ts:65:20)
│ at async file:///Users/runner/work/pkgx/pkgx/entrypoint.ts:59:3
╰─➤ https://github.com/pkgxdev/pkgx/issues/new Output of PKGX_POWDER=nodejs.org^18 git-scm.org pkgx.sh
PKGX_PKGENV=curl.se/ca-certs=2023.8.22 gnome.org/libxml2=2.11.4 tukaani.org/xz=5.4.5 unicode.org=71.1.0 openssl.org=1.1.1w zlib.net=1.3.0 gnu.org/gettext=0.21.1 curl.se=8.3.0 perl.org=5.38.0 libexpat.github.io=2.5.0 nodejs.org=18.18.0 npmjs.com=9.9.0 git-scm.org=2.42.0 pkgx.sh=1.1.4 pkgx.yaml:
|
As i am getting this error very frequently, as a workaround i have added the following line to my dev off && dev |
Sorry for this everyone. I’m actively figuring out solutions now. |
K so this particular problem is in the |
I've updated to the latest version, and I can't reproduce it anymore. In my case, I think it was caused by a pkgx.yaml with node 18 and When I try to
|
* Fixes pkgxdev/pantry#4104 * Refs pkgxdev/pkgx#899
The unicode issue is fixed in pkgx 1.1.6. The terraform one I cannot reproduce. @jakobvase yes asking for both node 18 and 20 would be a conflict, the other issues are separate bugs we should fix. I believe the constraint you specified is not supported by our semver range parser and the |
@mxcl I found the reason for my issue :-) It was due to a terraform binary present in the path (~/.local/bin/terraform) installed using Prerequisites
![]() Steps for simulation
![]() |
Having a A conflict is only possible if an existing pkg-env is present when trying to change that env. That environment is controlled by the Is it possible that iTerm2 is preserving |
Getting the following error in a random fashion as i move through terraform codebases
Error
Workaround
Do
dev off
and then rundev
The text was updated successfully, but these errors were encountered: