Comments (7)
@savil fish 3.7.1 and direnv 2.34.0
from devbox.
FWIW changing the contents of .raw-hooks
to use test -v
seems to fix the issue, though I'm not 100% sure it's functionally equivalent. Worth noting, test -v
was introduced in bash 4.2, so this won't work on versions prior to that.
test -v DEVBOX_COREPACK_ENABLED || corepack enable --install-directory "/Users/evan/Code/devbox-node-repro/.devbox/virtenv/nodejs/corepack-bin/"
test -v DEVBOX_COREPACK_ENABLED || export PATH="/Users/evan/Code/devbox-node-repro/.devbox/virtenv/nodejs/corepack-bin/:$PATH"
from devbox.
Probably worth noting that Iām using fish shell.
from devbox.
@evanleck which version of fish shell are you using?
from devbox.
Hey @evanleck, I've been trying to reproduce this but I can't get the error to replicate with Fish + Direnv. Can you try the following:
- Update to the latest version of Devbox using
devbox version update
- Delete the contents of your
.devbox
directory, then regenerate them usingdevbox shell
.
If those don't fix your issue, can you share the contents of the file at devbox-node-repro/.devbox/gen/scripts/.raw-hooks.sh
from devbox.
@Lagoja thanks for looking into the issue.
- Done, I'm on 0.10.4 now.
- Done.
Unfortunately, that didn't seem to fix the issue. The contents of .raw-hooks.sh
is:
test -z $DEVBOX_COREPACK_ENABLED || corepack enable --install-directory "/Users/evan/Code/devbox-node-repro/.devbox/virtenv/nodejs/corepack-bin/"
test -z $DEVBOX_COREPACK_ENABLED || export PATH="/Users/evan/Code/devbox-node-repro/.devbox/virtenv/nodejs/corepack-bin/:$PATH"
I don't see DEVBOX_COREPACK_ENABLED
anywhere in the output of env
if that's of any help.
from devbox.
I have exact same issue, with devbox 0.10.9 and zsh 5.9 (NixOS from the current release-24.05 tag). The test -v
trick works (thanks a lot for the advice!), and so does wrapping the test
s with set +u
/set -u
.
from devbox.
Related Issues (20)
- devbox shell unicode symbols HOT 3
- Fleek is deprecated - remove it from docs
- Package binaries not available in `tmux`
- Unable to find libclang HOT 1
- Cannot find flake in the flake registries when instaling python311Packages.torch-bin
- Add name/description to devbox init
- `refresh` alias overwrites init_hook
- Add ability to pass arbitrary flags to process-compose
- Use devbox project to manage utilities like process compose.
- Running a script inside devbox shell throws `file not found` error
- Configurable plugins
- Provide `devbox (global) outdated`
- Request to add hyperdb-python
- CLI Login Prompt has weird interactions with VSCode extension
- [Package Issue Report]: protobufjs-cli
- Start of container with generated Dockerfile is super slow
- Error installing [email protected] HOT 1
- VS Code terminal somehow start devbox shell HOT 1
- devbox shell cannot start (error in the nix version detection)
- devbox shell cannot find the userid and groups and group names on a Linux VDI that uses LDAP for IAM HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devbox.