Repository navigation
v1.0 Saskatchewan
v1.0 Saskatchewan
codenv v1.0 - Saskatchewan
Downloads
| Platform | Asset |
|---|---|
| Windows x64 | codenv-windows-x64.zip |
| Windows arm64 | codenv-windows-arm64.zip |
No installer: unzip, then run codenv. It is a single self-contained binary.
codenv is Windows-only by design: it is backed by Scoop and relies on Windows
PATH semantics. It requires PowerShell and git.
Check your setup at any time with codenv doctor.
Changelog
First stable release. codenv creates isolated, reproducible development
environments on Windows, backed by Scoop instead of Nix,
with shims disabled.
Why shims are the problem
Scoop makes every program reachable through one global shim directory and adds
that directory to your persistent user PATH. That works for a general-purpose
package manager and works badly for a reproducible dev environment: two
projects cannot run different versions of the same tool, the shim directory
leaks into unrelated terminals, and GUI packages quietly add Start Menu
shortcuts.
codenv takes a different approach. Scoop's shim files record the resolved
target of every binary it installs, so codenv reads them to learn the exact
directories a package contributes, records that in a per-store index, then
deletes the shim directory. PATH is composed from concrete
apps/<pkg>/<version> directories. Scoop's current junction is never used
for activation, so a background scoop update cannot change what an existing
environment resolves to.
Added
Environments
codenv initcreates acodenv.json;codenv add/rm/install/update/
listmanage packages.codenv.lock.jsonpins exact versions, buckets and architectures. A pinned
version that cannot be installed is a hard error, never a silent
substitution, because an environment that quietly runs the wrong version is
worse than one that says it cannot be built.- Multiple versions of one package coexist in a shared store. Two projects
can pin 7-Zip 24.09 and 26.03 at the same time, from one store. store: "project"gives a project a private store under.codenv/store.includemerges othercodenv.jsonfiles.- Every install snapshots and restores your persistent
PATH,SCOOP_PATH
andPSModulePath, even when Scoop fails, and removes Start Menu shortcuts
that an install created.
Shell and running things
codenv shellopens an isolated shell with acodenv:prompt marker;
codenv shell <cmd>runs one command inside it.codenv runexecutes a script fromcodenv.jsonor any command, propagating
the child's exit code.shell.init_hookruns on every shell and script start.--purereduces the environment to a minimal set,--env/--env-fileset
variables,codenv shellenvprints PowerShell, bash or cmd code for
direnv and editor integrations.
Global packages
codenv global add/rm/list/install/update/run/shellenv/pull/push/pathmanage
a set of tools available to every project, in their own store.
Services
codenv services up/start/stop/restart/ls/logs/cleansupervise the services
incodenv-services.json, natively, with no external process manager.
Supportsdepends_on, per-service environment and working directories, and
background or streaming-log operation.
Secrets
codenv secrets add/from/list/rm/downloaddeclare which variables a project
needs. Values are never stored. They are read from your environment when
a shell or script starts, socodenv.jsonstays safe to commit.secrets.fromremaps a secret onto other variables, trying each in order,
which lets one project point at a developer's local database and another at
CI's.- A missing source variable is a hard error for
shell/runand a warning for
shellenv, because editor integrations invoke the latter unconditionally. secrets downloadredacts by default;--valuesis an explicit opt-in.
Discovery and diagnostics
codenv searchsearches the local buckets offline.codenv infoshows a manifest: version, licence, dependencies, binaries.codenv doctorchecks the things that actually break: missing git, an
unwritable store, bucket manifests left dirty by autoupdate, a stray shims
directory, stale index entries, uninstalled pins, unset secret sources, and
packages already on your systemPATH.doctor --fixrepairs what is safe
to repair and never installs or removes packages.
Project scaffolding and generation
codenv create <template>scaffolds a project with a pinned toolchain.
Templates:go,python,node,rust,minimal.codenv generate dockerfile|devcontainer|direnv|readmeproduces supporting
files.codenv cache info|clean, and shell completions for PowerShell, bash, zsh
and fish.
Known limitations
- Windows only. Scoop and Windows
PATHsemantics are the foundation. The
code compiles elsewhere, but the tool cannot function there. - Requires git. Scoop is a git checkout and codenv clones its buckets.
- Historical version pins are limited by Scoop. Resolving a version that is
not the bucket's current one relies on Scoop's autoupdate, which downloads the
release to compute hashes. Releases from before arm64 Windows existed
(for exampleripgrep@14.1.1) cannot be resolved this way. - Versioned Python is published as separate packages.
python@3.11is not a
valid reference; useversions/python311. codenv detects this and says so. - The package dependency graph is effectively flat. None of the 4,815
manifests inmain,extrasandversionsdeclare adependencieskey;
modern Scoop usespre_install/installerscripts instead.
Not implemented
- Jetify Cloud equivalents:
auth, and cloudsecrets/cache. There is
nothing to authenticate against locally. - Devbox plugins, which describe Nix build setup. Scoop packages are prebuilt.
devbox createstyle templates from a remote catalogue.- Linux and macOS releases.
generate dockerfileemits a Windows container
Dockerfile, since a Linux image cannot run Scoop.