Tags: rbardak/devbox
Tags
[whitespace] sourcing init hooks: wrap project dir path in quotes (je… …tify-com#2393) ## Summary Fixes jetify-com#2374 Should also audit other sites... ## How was it tested? Should add an automated test but trying to squeeze this out. in `/Users/savil/code/jetpack/devbox-projects/project with spaces`: ``` % cat devbox.json { "packages": [], "shell": { "init_hook": [ "echo 'Welcome to devbox!' > /dev/null" ], "scripts": { "test": [ "echo \"Error: no test specified\" && exit 1" ] } } } ``` did `devbox generate direnv` BEFORE: when cd-ing: ``` Success: generated .envrc file Success: ran `direnv allow` direnv: loading ~/code/jetpack/devbox-projects/project with spaces/.envrc direnv: using devbox /bin/bash:131: /Users/savil/code/jetpack/devbox-projects/project: No such file or directory direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +DEVBOX_NIX_ENV_PATH_b34d1ddb08645bdcc5635ad815352419d9e4c170665ecc20e5abdb7503e1fe80 +HOST_PATH +IN_NIX_SHELL +LD +LD_DYLD_PATH +MACOSX_DEPLOYMENT_TARGET +NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_apple_darwin +NIX_BUILD_CORES +NIX_CC +NIX_CC_WRAPPER_TARGET_HOST_x86_64_apple_darwin +NIX_CFLAGS_COMPILE +NIX_COREFOUNDATION_RPATH +NIX_DONT_SET_RPATH +NIX_DONT_SET_RPATH_FOR_BUILD +NIX_ENFORCE_NO_NATIVE +NIX_HARDENING_ENABLE +NIX_IGNORE_LD_THROUGH_GCC +NIX_LDFLAGS +NIX_NO_SELF_RPATH +NIX_STORE +NM +PATH_LOCALE +RANLIB +SIZE +SOURCE_DATE_EPOCH +STRINGS +STRIP +__DEVBOX_SHELLENV_HASH_b34d1ddb08645bdcc5635ad815352419d9e4c170665ecc20e5abdb7503e1fe80 +__darwinAllowLocalNetworking +__impureHostDeps +__propagatedImpureHostDeps +__propagatedSandboxProfile +__sandboxProfile +__structuredAttrs +buildInputs +buildPhase +builder +cmakeFlags +configureFlags +depsBuildBuild +depsBuildBuildPropagated +depsBuildTarget +depsBuildTargetPropagated +depsHostHost +depsHostHostPropagated +depsTargetTarget +depsTargetTargetPropagated +doCheck +doInstallCheck +dontAddDisableDepTrack +mesonFlags +name +nativeBuildInputs +out +outputs +patches +phases +preferLocalBuild +propagatedBuildInputs +propagatedNativeBuildInputs +shell +shellHook +stdenv +strictDeps +system ~DEVBOX_CONFIG_DIR ~DEVBOX_PACKAGES_DIR ~DEVBOX_PATH_STACK ~DEVBOX_PROJECT_ROOT ~DEVBOX_WD ~PATH ``` AFTER: ``` % cd 'project with spaces' direnv: loading ~/code/jetpack/devbox-projects/project with spaces/.envrc direnv: using devbox direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +DEVBOX_NIX_ENV_PATH_b34d1ddb08645bdcc5635ad815352419d9e4c170665ecc20e5abdb7503e1fe80 +HOST_PATH +IN_NIX_SHELL +LD +LD_DYLD_PATH +MACOSX_DEPLOYMENT_TARGET +NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_apple_darwin +NIX_BUILD_CORES +NIX_CC +NIX_CC_WRAPPER_TARGET_HOST_x86_64_apple_darwin +NIX_CFLAGS_COMPILE +NIX_COREFOUNDATION_RPATH +NIX_DONT_SET_RPATH +NIX_DONT_SET_RPATH_FOR_BUILD +NIX_ENFORCE_NO_NATIVE +NIX_HARDENING_ENABLE +NIX_IGNORE_LD_THROUGH_GCC +NIX_LDFLAGS +NIX_NO_SELF_RPATH +NIX_STORE +NM +PATH_LOCALE +RANLIB +SIZE +SOURCE_DATE_EPOCH +STRINGS +STRIP +__DEVBOX_SHELLENV_HASH_b34d1ddb08645bdcc5635ad815352419d9e4c170665ecc20e5abdb7503e1fe80 +__darwinAllowLocalNetworking +__impureHostDeps +__propagatedImpureHostDeps +__propagatedSandboxProfile +__sandboxProfile +__structuredAttrs +buildInputs +buildPhase +builder +cmakeFlags +configureFlags +depsBuildBuild +depsBuildBuildPropagated +depsBuildTarget +depsBuildTargetPropagated +depsHostHost +depsHostHostPropagated +depsTargetTarget +depsTargetTargetPropagated +doCheck +doInstallCheck +dontAddDisableDepTrack +mesonFlags +name +nativeBuildInputs +out +outputs +patches +phases +preferLocalBuild +propagatedBuildInputs +propagatedNativeBuildInputs +shell +shellHook +stdenv +strictDeps +system ~DEVBOX_CONFIG_DIR ~DEVBOX_PACKAGES_DIR ~DEVBOX_PATH_STACK ~DEVBOX_PROJECT_ROOT ~DEVBOX_WD ~PATH ```
bump version to 0.13.5 (jetify-com#2360) ## Summary Updating the version to fix a process-compose bug with postgresql * Bump version to 0.13.5 * Upgrade the nixpkgs commit we use to build ## How was it tested? nix build . Tested `devbox init` on an existing project to validate warning Tested `devbox services up` on postgres to validate process-compose change
Bump version to 0.13.4 (jetify-com#2337) ## Summary * Bumps Devbox version to 0.13.4. Will tag this commit once merged * Adds `subpackage` to only build the Devbox binary. Otherwise we also build the Testrunner/updater binary which is not relevant for users * Support cross-compilation by skipping post-install scripts if Devbox is built for a different system than the host ## How was it tested? `nix build .` ++ `devbox run tidy`
[plugins] Add env var to control github cache ttl (jetify-com#2314) ## Summary This adds new experimental env var `DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL` that controls how long devbox caches github plugins. The default is 24h. Ideally we store plugin versions in lockfile, but this can help improve UX in the meantime. ## How was it tested? Added print statement to monitor network requests ```bash DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=0 devbox run echo hello DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=1s devbox run echo hello DEVBOX_X_GITHUB_PLUGIN_CACHE_TTL=1h devbox run echo hello ```
Fix flake rev issue (jetify-com#2310) ## Summary Nix flake fails to build with: ```nix error: attribute 'dirtyShortRev' missing at /nix/store/m5mqwkz0ss2cav2c9663mx8vwsmvcas3-source/flake.nix:21:28: 20| then "${x}-${self.shortRev}" 21| else "${x}-${self.dirtyShortRev}") | ^ 22| ]; ``` This fixes the issue ## How was it tested? ``` nix build github:jetify-com/devbox/jl/fix-flake-rev ```
internal/devbox: handle whitespace in paths (jetify-com#2292)
[Python] Change `.venv` script to be more compatible with IDEs (jetif… …y-com#2259) ## Summary Moves `.venv` to the Devbox Project Root, and adds some checks to ensure we warn the user if we are going to squash a user created venv. Moving `.venv` to the project root makes it more likely that Python Extensions and IDEs will pick up the devbox managed python, instead of a system python Fixes DEV-105 ## How was it tested? --------- Co-authored-by: John Lago <>
PreviousNext