HPM documentation
HPM is a package manager for SideFX Houdini. It installs Houdini packages
and the Python packages they need, records exactly what it installed in a
lock file, and writes the files Houdini reads to load them. It is a single
command-line program, hpm.
Start here
- Install hpm
- Quickstart: install a package into a project and load it in Houdini.
- Concepts: packages, projects, the store, registries, the lock file.
Guides
Step-by-step, one task each.
| I want to | Guide |
|---|---|
| Make a package | Create your first package |
| See my edits in Houdini while I work | Develop against a live Houdini |
| Use numpy or other Python packages | Add Python dependencies |
| Ship compiled plugins | Ship an HDK plugin |
| Cover Houdini 21 and 22 | Support several Houdini versions |
| Release a package | Publish a package |
| Host in-house packages | Run a studio registry |
| Automate installs and releases | Continuous integration |
| Run tools and farm tasks | Run package code outside Houdini |
| Set OCIO, asset roots, show paths | Set a project’s environment |
| Free disk space | Keep disk usage down |
Reference
- CLI: every command and flag.
- The
hpm.tomlmanifest: every section and key. - Configuration:
~/.hpm/config.toml. - The
hpm.locklock file - Files and directories
- Environment variables
- Registry formats
- Troubleshooting
- Upgrade notes
How it works
Contributing
- Architecture
- API overview
- Testing guide
- CONTRIBUTING.md: development setup, workflow, and how these docs are published.
Install hpm
hpm is a single executable. It needs nothing else installed: it downloads
its own copy of uv, and the Python interpreters for its virtual
environments, the first time a package needs them. Git is needed only for
Git registries and for hpm init to create a repository.
Houdini 20.5, 21 and 22 are supported.
Download a release
Download the file for your platform, and the .sha256 file beside it, from
the latest release:
| Platform | File |
|---|---|
| Linux x86_64 | hpm-v<version>-linux-x86_64 |
| macOS (Apple silicon and Intel) | hpm-v<version>-darwin-universal |
| Windows x86_64 | hpm-v<version>-windows-x86_64.exe |
Linux and macOS
sha256sum -c hpm-v<version>-linux-x86_64.sha256 # macOS: shasum -a 256 -c
chmod +x hpm-v<version>-linux-x86_64
mv hpm-v<version>-linux-x86_64 ~/.local/bin/hpm # any directory on your PATH
hpm --version
Windows
# The two values must be equal, ignoring case.
(Get-FileHash hpm-v<version>-windows-x86_64.exe).Hash
Get-Content hpm-v<version>-windows-x86_64.exe.sha256
New-Item -ItemType Directory -Force "$env:USERPROFILE\bin"
Move-Item hpm-v<version>-windows-x86_64.exe "$env:USERPROFILE\bin\hpm.exe"
hpm --version # after adding %USERPROFILE%\bin to your PATH
The checksum file comes from the same release as the binary, so it detects a corrupted or swapped download, not a compromised release.
Build from source
Requires Rust 1.89 or newer.
git clone https://github.com/3db-dk/hpm.git
cd hpm
cargo build --release
# binary: target/release/hpm
Upgrade
Replace the executable with a newer release. The store, virtual
environments and configuration under ~/.hpm/ carry over. Read
Upgrade notes first when skipping several versions.
Uninstall
Delete the executable and ~/.hpm/. Before that, run hpm global remove
for anything you installed with hpm global add, because those package
files live in Houdini’s preferences directory, not under ~/.hpm/.
Shell completions
# Bash (add to ~/.bashrc)
eval "$(hpm completions bash)"
# Zsh (add to ~/.zshrc)
eval "$(hpm completions zsh)"
# Fish
hpm completions fish | source
# PowerShell (add to $PROFILE)
hpm completions powershell | Out-String | Invoke-Expression
Supported shells: bash, zsh, fish, powershell, elvish.
Next
Quickstart: use packages in a Houdini project.
Quickstart: use packages in a Houdini project
Ten minutes, from an empty directory to a Houdini session that loads a package hpm installed. You need hpm installed and Houdini 20.5 or newer.
1. Add a registry
A registry is where hpm looks packages up. Add the one you install from,
once per machine. This documentation uses one example registry throughout:
a studio’s own, named studio, which
Run a studio registry builds from nothing.
Substitute your registry’s URL:
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git
2. Create a project
A project is a directory with an hpm.toml that lists the packages you
want. --bare creates only that file:
hpm init my-project --bare --houdini "^21"
cd my-project
--houdini is the Houdini version the project runs in. ^21 means any
Houdini 21; use ^22 for Houdini 22, or ^20.5 for 20.5. It matters most
when packages bring Python dependencies, because it selects the Python
version they are installed for.
3. Find and add a package
hpm search rock
hpm add acme/rock-tools
hpm add takes the full creator/slug name that hpm search prints. It
picks the newest version, writes it to hpm.toml, and installs it:
[dependencies]
"acme/rock-tools" = "0.1.0"
To get a specific version, ask for it: hpm add acme/rock-tools@0.1.0.
4. See what was installed
hpm list
Two things now exist beside hpm.toml:
hpm.lockrecords the exact version and a checksum. Commit it..hpm/packages/holds one small JSON file per package, which tells Houdini where the package is. Do not commit.hpm/.
The package itself is in the shared store under ~/.hpm/packages/, not in
the project.
5. Start Houdini with the project’s packages
Houdini loads the packages listed in the directories named by
HOUDINI_PACKAGE_PATH. Point it at the project:
# Linux, macOS
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini
# Windows (PowerShell)
$env:HOUDINI_PACKAGE_PATH = "$PWD\.hpm\packages"
houdini
houdini here is whatever starts Houdini on your machine, from a shell where
Houdini’s environment is set up.
6. Check it loaded
In Houdini, the package’s nodes are in the TAB menu and its shelves in the shelf list. To check from Houdini’s Python shell:
import hou
print(hou.getenv("HOUDINI_PATH"))
The output includes a path under .hpm/packages/ in your home directory.
If the package is missing, see Troubleshooting.
Day to day
hpm add acme/fast-scatter # add one more
hpm remove acme/rock-tools
hpm update --dry-run # what newer versions exist?
hpm update # move to them
hpm install # after pulling a teammate's hpm.toml and hpm.lock
Restart Houdini after any of these; it reads package files only at startup.
A tool in every session, without a project
For a personal tool you always want, skip the project and install it into Houdini’s own preferences for one Houdini version:
hpm global add acme/rock-tools --houdini 21.0
hpm global list --houdini 21.0
hpm global remove acme/rock-tools --houdini 21.0
It then loads in every Houdini 21.0 session with no environment variable.
See hpm global.
Next
- Concepts: what a project, a package and the store are.
- Create your first package.
- Add Python dependencies.
Concepts
The handful of ideas the rest of the documentation assumes.
Package
A package is a directory of things Houdini can load: digital assets in
otls/, shelves in toolbar/, Python modules in python/, compiled
plugins in dso/, and so on, with an hpm.toml that names it.
A package is identified by its path, creator/slug, for example
acme/rock-tools, and a semantic version. hpm pack turns the
directory into an archive that can be published and installed elsewhere.
Project
A project is a directory whose hpm.toml lists the packages a piece of
work needs: a show, a shot, a personal setup. hpm install makes those
packages available and writes the files that let Houdini load them.
A project and a package use the same file, and a directory can be both. The difference is which commands you run and which sections they read:
| As a package | As a project | |
|---|---|---|
| You run | hpm check, hpm build, hpm pack | hpm add, hpm install, hpm update |
[package] | Its published identity | A name for the project |
[compat].houdini | The Houdini versions it supports | The project’s Houdini, which selects the Python version |
[dependencies] | What it needs from other packages, as ranges | What to install, as exact versions |
[runtime] | Variables it sets in Houdini | Overrides applied on top of every package |
[stage], [[operators]] | What ships in the archive | Not used |
hpm init creates a package layout. For a project that only consumes
packages, hpm init --bare creates just the hpm.toml.
Store
Installed packages live once per machine, in the store at
~/.hpm/packages/, as <slug>@<version>/. Projects do not contain copies.
Ten projects using the same version of a package share one directory.
Package files
Houdini discovers packages by reading small JSON package files. For each
dependency, hpm install writes one into <project>/.hpm/packages/,
pointing at the package in the store. You start Houdini with
HOUDINI_PACKAGE_PATH set to that directory, and Houdini loads exactly the
project’s packages.
This is the whole integration: hpm does not modify Houdini, and Houdini does not know hpm exists. How Houdini loads hpm packages shows the files.
Global install
hpm global add skips the project. It writes the package file into
Houdini’s own preferences directory, so the package loads in every session
of one Houdini version. Use it for personal tools; use projects for
anything a team must reproduce.
Registry
A registry is an index that maps creator/slug and a version to a
download URL and checksum. hpm consults the registries you have added when
you run hpm add, hpm install, hpm update or hpm search. A registry
can be public or private; a studio can run its own.
A dependency does not have to come from a registry. It can also be a URL to an archive, or a path to a package directory on disk, which is how you use a package while developing it.
Versions, and what install adds
A project’s [dependencies] hold exact versions. hpm add picks the newest
version and writes it; hpm update moves it forward; hpm install installs
what is written.
It also installs what those packages need. Each published version records
the ranges it requires of other packages, and hpm install adds every
package the project’s versions require, at the newest version that fits all
of them, and records it in the lock. When the requirements cannot all be
met, for example the project pins a version another package rules out, the
install stops and says which packages disagree.
Lock file
hpm install records the installed versions and a checksum of each in
hpm.lock. Committed alongside hpm.toml, it makes the next install, on
any machine, produce the same packages or fail. See
the lock file reference for what it does and does not pin.
Python environments
A package can declare Python packages it needs inside Houdini. hpm installs
them with a bundled uv into a virtual environment built for the Python
that the project’s Houdini ships, and adds it to that package’s
PYTHONPATH. Environments are shared: projects whose packages resolve to
the same set use the same one. See Python environments.
Where to go next
- Quickstart: install a package into a project and load it.
- Create your first package.
- The
hpm.tomlreference.
Create your first package
You will make a package with a Python module and a shelf, load it in Houdini from a project, and build the archive you would publish. No registry is involved.
1. Scaffold
hpm init rock-tools --description "Rock scattering tools"
Package structure:
├── .gitignore
├── README.md
├── config
├── hpm.toml
├── otls
├── presets
├── python
│ └── __init__.py
├── scripts
└── tests
The folders are Houdini conventions, not hpm ones. Anything Houdini finds
under a HOUDINI_PATH entry works: otls/ for digital assets, toolbar/
for shelves, python_panels/, viewer_states/, dso/, and so on. Delete
the ones you do not use and add the ones you need.
2. Name it
hpm init writes a placeholder identity. Open rock-tools/hpm.toml and set
the real one:
[package]
path = "acme/rock-tools" # creator/slug: lowercase letters, digits, hyphens
name = "Rock Tools" # display name
version = "0.1.0"
description = "Rock scattering tools"
authors = ["You <you@example.com>"]
license = "MIT"
readme = "README.md"
keywords = ["houdini"]
[compat]
houdini = "^21" # Houdini 21.x
path is how others will depend on the package. The creator part is your
account or studio name on the registry you publish to.
3. Add content
A Python module:
# rock-tools/python/rock_tools.py
def hello():
return "rocks"
A shelf. Create rock-tools/toolbar/ and save a shelf file into it from
Houdini (right-click a shelf tab, Edit Shelf Tab, and choose a file under
that folder), or copy an existing .shelf file there.
A digital asset: save an HDA into rock-tools/otls/.
4. Check it
cd rock-tools
hpm check
hpm check validates the manifest and warns about what a published package
should have: a description, a README, a license file. Warnings do not fail
the command.
5. Use it from a project
Create a project next to the package and depend on it by path:
cd ..
hpm init shot-010 --bare
cd shot-010
hpm add acme/rock-tools --path ../rock-tools
[dependencies]
"acme/rock-tools" = { path = "../rock-tools" }
Start Houdini on the project:
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini
In Houdini’s Python shell:
>>> import rock_tools
>>> rock_tools.hello()
'rocks'
hpm put the package’s python/ folder on PYTHONPATH and the package root
on HOUDINI_PATH, which is why the module imports and the shelf and HDAs
appear.
A path dependency installs a copy of the package. After you change the
package, run hpm install in the project again and restart Houdini.
Develop a package against a live Houdini shows
how to skip the copy.
6. Set an environment variable
Packages often need Houdini to know where something is. Declare it in the
package’s hpm.toml:
[runtime]
ROCK_TOOLS_PRESETS = { method = "set", value = "$HPM_PACKAGE_ROOT/presets" }
$HPM_PACKAGE_ROOT becomes the installed package’s directory. After
hpm install and a restart, hou.getenv("ROCK_TOOLS_PRESETS") returns it.
See [runtime].
7. Build the archive
cd ../rock-tools
hpm pack
This writes rock-tools-0.1.0.zip and prints its SHA-256. The archive
contains the package under a rock-tools/ folder and a rock-tools.json
beside it, so it also works unzipped into a Houdini packages directory
without hpm.
Files ignored by .gitignore are left out. To control exactly what ships,
see [stage].
Next
- Add Python dependencies such as numpy.
- Publish a package.
- The
hpm.tomlreference.
Develop a package against a live Houdini
While you work on a package you want Houdini to load your working copy, not a published version. A path dependency does that. It comes in two modes, and which one you use decides how edits reach Houdini.
Copy mode (the default)
hpm add acme/rock-tools --path ../rock-tools
[dependencies]
"acme/rock-tools" = { path = "../rock-tools" }
hpm install copies the package’s install image into the store: the files
hpm pack would ship, not the whole working directory. .git/, build
directories and anything ignored are left behind.
- To pick up a change: run
hpm installin the project, then restart Houdini. - Use it when you want to test exactly what users will get, and for any package with compiled plugins.
Each install of changed content goes to a new directory, so a Houdini that is still running keeps the copy it started with.
Link mode
hpm add acme/rock-tools --path ../rock-tools --link
[dependencies]
"acme/rock-tools" = { path = "../rock-tools", link = true }
The store entry is a symlink (a junction on Windows, which needs no special permission) to your working directory. Houdini reads your files directly.
- To pick up a change: nothing to run. What Houdini does with the edit depends on the file; see the table below.
- Use it when the package is Python, HDAs, shelves and other data.
A package that declares native platforms in [compat].platforms is always
installed as a copy, even with link = true. A linked plugin binary could
not be rebuilt while Houdini has it loaded, and Houdini cannot reload one
without a restart anyway.
What needs what
| You changed | Copy mode | Link mode |
|---|---|---|
| A Python module | hpm install, restart | Reload the module (importlib.reload) or restart |
| An HDA | hpm install, restart | Houdini sees the file; refresh asset libraries or restart |
| A shelf, a preset, other data | hpm install, restart | Restart, or reload where Houdini offers it |
hpm.toml: [runtime], [python_dependencies], [compat] | hpm install, restart | hpm install, restart |
| A compiled plugin | Rebuild, hpm install, restart | Same; it is installed as a copy |
Changes to hpm.toml always need hpm install, because they change the
package file hpm generates for Houdini, and Houdini reads those only at
startup.
Editing HDAs from inside Houdini
Houdini saves an HDA back to the file it loaded. In link mode that is your working copy, which is what you want. In copy mode it is the copy in the store: the edit is not in your repository, and the next install will not include it. Use link mode when you edit assets in Houdini.
Values that differ in development
A [runtime] value can depend on whether the package was installed from a
path or from a registry:
[runtime.ROCK_TOOLS_DEBUG]
method = "set"
value = [
{ when = { install_source = "dev" }, set = "1" },
{ when = {}, set = "0" },
]
Do not use this to point at a build directory. A copy-mode install does not contain it; see HDK plugins: where a dev install finds its DSOs.
Going back to the published version
Replace the path dependency with a registry one:
hpm add acme/rock-tools@1.2.0
Path installs live apart from registry installs in the store, so a
development copy of rock-tools 1.2.0 is never mistaken for the published
1.2.0, in this project or any other.
hpm clean removes development copies no project refers to. Close Houdini
sessions that use them first.
Add Python dependencies to a package
Your package’s code imports numpy, or requests, or PySide helpers. Declare them, and hpm installs them for the right Python and makes them importable inside Houdini, without touching Houdini’s own Python or the system one.
This continues from Create your first package.
1. Declare them in the package
In the package’s hpm.toml (the package whose code does the importing):
[python_dependencies]
numpy = ">=1.26,<3"
requests = { version = ">=2.31", extras = ["socks"] }
Versions use pip’s syntax (PEP 440), which differs from the syntax of
[dependencies]:
| To say | Write |
|---|---|
| At least 1.26 | ">=1.26" |
| 1.26 or newer, below 3 | ">=1.26,<3" |
| Compatible with 1.26 (1.x, at least 1.26) | "~=1.26" |
| Exactly 1.26.4 | "==1.26.4" |
| Any version | "*" |
Two things that look right and are not: a bare "1.26.4" (write
"==1.26.4"), and the caret "^1.26" (write "~=1.26").
2. Install in the project
cd ../shot-010
hpm install
The first time, this downloads uv and a CPython build into ~/.hpm/.
Then it resolves the constraints, creates a virtual environment under
~/.hpm/venvs/, and adds its site-packages to the package’s PYTHONPATH
in the generated package file.
3. Use them in Houdini
Restart Houdini on the project and, in the Python shell:
>>> import numpy
>>> numpy.__version__
'2.1.3'
Which Python?
The one your Houdini ships. hpm reads it from the lower bound of the
project’s [compat].houdini:
| Project’s Houdini | Python |
|---|---|
| 20.5 | 3.11 |
| 21 | 3.11 |
| 22 | 3.13 |
So set the project’s [compat].houdini to the Houdini you actually launch.
A project declaring ^21 and launched in Houdini 22 gets Python 3.11
packages in a Python 3.13 interpreter, and compiled modules such as numpy
fail to import. The package’s own [compat].houdini says what it supports;
it does not choose the Python.
Where to declare what
Declare a Python dependency in the package that imports it. hpm install
builds Houdini’s environment from the installed packages’ declarations.
[python_dependencies] in the project’s own hpm.toml are not part of
that environment; they are used when the project runs its own
package-env scripts.
Keeping versions stable
hpm.lock pins Houdini packages, not Python packages. uv resolves your
constraints again on each install, so >=1.26 can produce a newer numpy next
month. Where that matters, pin:
[python_dependencies]
numpy = "==2.1.3"
The trade-off is sharing, described next.
Several packages, one environment
All of a project’s packages share one virtual environment, so every package sees the same version of numpy. Two consequences:
- The same Python package must be declared with the same constraint
everywhere. If one package says
numpy = ">=1.26"and anothernumpy = ">=1.26,<3", install fails withConflicting versions for package numpy. Agree on one spelling across your packages. - Projects whose packages resolve to the same set share the environment on disk. Loose, identical constraints across a studio’s packages keep the number of environments small.
Dependencies you do not want installed
optional = true records a dependency without installing it:
[python_dependencies]
matplotlib = { version = ">=3.8", optional = true }
hpm skips it. Use it to document something your code imports only if the user has installed it themselves.
If it goes wrong
See Troubleshooting, and Python environments for how the environments are built, shared and cleaned up.
Ship an HDK plugin
A package with compiled code differs from a data package in three ways: it
is built per platform, the build output is not where Houdini should load it
from, and it is tied to a Houdini major version. hpm.toml has a section
for each.
The example is a SOP plugin built with CMake into build/.
1. Declare platforms and Houdini version
[package]
path = "acme/fast-scatter"
name = "Fast Scatter"
version = "1.0.0"
[compat]
houdini = "^21"
platforms = ["linux-x86_64", "macos-aarch64", "windows-x86_64"]
Keep the Houdini range bounded to one major. A plugin compiled against the
Houdini 21 SDK does not load in Houdini 22, and hpm check warns when a
package with platforms has no upper bound. For more than one major, see
Support several Houdini versions.
2. Describe the build as a script
[scripts]
build-dso = "cmake -S . -B build && cmake --build build --config Release"
Run it with hpm run build-dso. Where the command differs per OS, give
cmd one variant per OS. The script
runs in your shell, so it needs the Houdini build environment set up the way
your CMake project expects.
3. Place the binaries where Houdini looks
Houdini loads plugins from a dso/ folder under any HOUDINI_PATH entry.
Your build writes somewhere else. [stage] moves files as the package is
assembled, without changing your source tree:
[stage]
prepack = ["build-dso"] # scripts to run before staging
exclude = ["src/**", "CMakeLists.txt"] # sources stay out of the package
[stage.platform.linux-x86_64]
place = [{ from = "build/*.so", to = "dso/" }]
[stage.platform.macos-aarch64]
place = [{ from = "build/*.dylib", to = "dso/" }]
[stage.platform.windows-x86_64]
place = [{ from = "build/Release/*.dll", to = "dso/" }]
With the plugin in dso/ at the package root, it needs no environment
variable at all. That matters: a package that locates its plugin through a
[runtime] variable loses it on install routes that ignore the variable,
such as Houdini’s own Package Browser.
Two rules decide whether a placed file actually ships, and both are easy to trip over:
-
[stage].excludebeatsplace. Do not excludebuild/**; that removes the binaries the place rules name. -
Ignored files are not staged. Build output is normally in
.gitignore, so re-include just the binaries in an.hpmignorebesidehpm.toml:# .hpmignore !build/*.so !build/*.dylib !build/Release/*.dllEverything else in
build/stays ignored, so object files and caches do not end up in the package.
Keep dist/ (the output of the next step) in .gitignore as well, which
hpm init does. Otherwise hpm pack ships the previous build’s dist/
inside the archive.
4. Build the install image
hpm build
This runs the prepack scripts, then writes the package exactly as it would
be installed into dist/: your data folders, plus dso/ holding this
machine’s plugin. Look at it. If dist/dso/ is empty, the place rule’s
from did not match.
Point a Houdini at dist/ to test it directly, or depend on the package by
path from a project (hpm add acme/fast-scatter --path ../fast-scatter). A
path dependency on a package with platforms installs this same image as a
copy, so after a rebuild run hpm install in the project and restart
Houdini.
5. A debug build
Profiles let one manifest describe more than one build:
[scripts]
build-dso-debug = "cmake -S . -B build && cmake --build build --config Debug"
[stage.profile.debug]
prepack = ["build-dso-debug"]
[stage.profile.debug.platform.windows-x86_64]
place = [{ from = "build/Debug/*.pdb", to = "dso/" }] # added to the base rules
hpm build --profile debug
A profile’s prepack replaces the base list; its place rules are added to
the base ones. Two files placed at the same path are an error, so have the
debug build write its binaries where the base rules already look, and use
the profile for what is extra, such as the PDB files above (re-included in
.hpmignore like the binaries).
A single script can also branch on $HPM_BUILD_PROFILE, which hpm build
sets for prepack scripts. See
build profiles.
6. Declare the operators
So a registry can answer “which package provides the fast_scatter SOP”:
[[operators]]
kind = "dso"
type_name = "acme::fast_scatter"
label = "Fast Scatter"
category = "Sop"
source = { linux-x86_64 = "dso/fast_scatter.so", macos-aarch64 = "dso/fast_scatter.dylib", windows-x86_64 = "dso/fast_scatter.dll" }
hpm cannot read operator names out of a compiled plugin, so they are
declared. source lets hpm pack check the file really is in the archive.
7. Pack, once per platform
Build and pack on each platform you declared:
hpm run build-dso
hpm pack --verify-assets --json
This produces fast-scatter-1.0.0-linux-x86_64.zip on Linux, and so on.
Each archive contains the shared files and only that platform’s binaries.
--verify-assets fails the pack if a declared operator’s file is missing.
hpm pack does not run prepack scripts; build first. Pack archives that
contain Unix executables on a Unix machine, because Windows cannot record
the executable bit.
When all archives are published under the same version, a user’s
hpm install picks the one for their platform.
Next
- Publish a package.
- Continuous integration for building every platform on a tag.
- The
[stage]reference for every rule.
Support several Houdini versions
How much work this is depends on what the package contains.
| The package contains | What to do |
|---|---|
| HDAs, shelves, pure Python | Widen [compat].houdini. One archive serves every version. |
| Paths or settings that differ per version | Conditional [runtime] values. |
| Python dependencies with compiled parts (numpy, …) | Nothing in the package; the project’s Houdini selects the build. |
| Compiled HDK plugins | One binary per Houdini major, in version-keyed folders. |
Declare the range
[compat]
houdini = ">=21, <23" # Houdini 21 and 22
hpm compiles the range into the package file’s enable expression, so a
Houdini outside it skips the package. Only declare versions you have
tested. Useful forms:
| Range | Means |
|---|---|
"^21" | 21.x |
"~21.5" | 21.5.x |
">=20.5, <23" | 20.5 through 22.x |
">=21" | 21 and everything after. For data-only packages you are willing to vouch for. |
Values that differ per version
A [runtime] value can be a list of variants, each with a condition. The
first variant that matches wins:
[runtime.ROCK_TOOLS_UI]
method = "set"
value = [
{ when = { houdini = "^21" }, set = "$HPM_PACKAGE_ROOT/ui/h21" },
{ when = { houdini = "^22" }, set = "$HPM_PACKAGE_ROOT/ui/h22" },
]
Houdini evaluates the conditions at startup, so one installed package
adapts to whichever Houdini loads it. Conditions can also test os and
python; see conditional values.
Houdini’s own variables pass through untouched, which is often shorter:
[runtime]
ROCK_TOOLS_UI = { method = "set", value = "$HPM_PACKAGE_ROOT/ui/h$HOUDINI_MAJOR_RELEASE" }
Python dependencies
Houdini 21 ships Python 3.11 and Houdini 22 ships 3.13. A package does not
choose between them. The project does: hpm builds the virtual
environment for the Python that matches the lower bound of the project’s
[compat].houdini.
For the package author this means: declare Python dependencies with
constraints that have releases for every Python you support, and widen the
package’s Houdini range. For the project owner: set the project’s
[compat].houdini to the Houdini that is actually launched, and use one
project per Houdini major rather than one project launched in both.
Compiled plugins
A plugin built against one Houdini major does not load in another, so a
package covering two majors carries two binaries. Both cannot be named
dso/fast_scatter.so, so place them in version-keyed folders and point
Houdini at the right one:
[compat]
houdini = ">=21, <23"
platforms = ["linux-x86_64"]
[stage.platform.linux-x86_64]
place = [
{ from = "build/h21/*.so", to = "dso/21/" },
{ from = "build/h22/*.so", to = "dso/22/" },
]
[runtime]
HOUDINI_DSO_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/dso/$HOUDINI_MAJOR_RELEASE" }
The cost of this layout: the plugin is found only where the [runtime]
variable is applied. That is every hpm install and every manual install
that keeps the shipped package file, but not Houdini’s Package Browser
“Install Package Archive”, which discards it. If that route matters to your
users, publish one package version per Houdini major instead, each with a
plain dso/ folder and a ^21 or ^22 range.
Building only some majors
A build script that loops over Houdini versions can take the list from hpm:
hpm build --houdini-majors "21 22"
Prepack scripts receive it as HPM_HOUDINI_MAJORS. hpm passes the value
along and does not interpret it. Treat an empty or unset value as “build
every major the package declares”, so that a plain hpm build still does
the full job, and CI can narrow it to the majors installed on a runner.
Declaring operators per platform
[[operators]] source is checked against one path per platform. With
version-keyed folders, name one of the binaries, or omit source and index
the operator by name only.
Publish a package
Publishing has two halves. hpm does the first: it builds the archive and
tells you its checksum. The second is yours: put the archive somewhere it
can be downloaded, and tell a registry where it is. hpm has no publish
command and no upload step.
1. Prepare the release
- Set the real
path(creator/slug) and bumpversioninhpm.toml. A published version is permanent: registries and lock files identify the bytes by it. Fix mistakes with a new version. - Declare the Houdini range you tested in
[compat].houdini. - Declare dependencies on other packages as ranges you have tested, for
example
"acme/core" = ">=1.2, <2". See versions and ranges. - Add a
README.mdand a license file.
hpm check
2. Declare what the package provides (optional)
[[operators]] lists the node types in the package, so a registry can
search by node name:
[[operators]]
kind = "hda"
type_name = "acme::rock_scatter::1.0"
label = "Rock Scatter"
category = "Sop"
source = "otls/rock_scatter.hda"
See [[operators]].
3. Pack
hpm pack --json --verify-assets --output release/
{
"archive": "release/rock-tools-1.0.0.zip",
"sha256": "40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f",
"signature": null,
"key_id": null,
"platform": null,
"assets": []
}
Keep this output. The registry needs sha256, and platform when it is
set. Read the archive’s name from it rather than constructing it.
A package that declares [compat].platforms is packed once per platform,
on that platform; see Ship an HDK plugin.
4. Sign (optional)
openssl genpkey -algorithm ed25519 -out signing.pem # once; keep it secret, outside the package
openssl pkey -in signing.pem -pubout -out signing.pub.pem
hpm pack --json --key signing.pem
signature and key_id are then filled in. Be clear about what this buys:
hpm produces signatures and registries can store them, but hpm does not
verify signatures on install. They are for a registry or a pipeline that
checks them itself. See Security.
5. Host the archive
Upload the .zip anywhere that serves it over https: a release on your
code host, an object storage bucket, a studio file server. Do not change the
file after packing; the checksum and signature cover its exact bytes.
6. Register the version
Tell the registry the package path, version, download URL, checksum, and platform. How depends on the registry, and on whether it accepts packages from you at all: a registry decides who may publish to it.
- A Git registry you control. Append one line to the package’s index file and push. See Run a studio registry.
- An API registry. hpm only reads from API registries; registering a
version is done through whatever its operator provides. The fields it
needs are the ones in the
hpm pack --jsonoutput. See Registry formats for what such a registry serves.
Then check it from a clean project:
hpm registry update # Git registries only
hpm search rock-tools
hpm add acme/rock-tools@1.0.0
Without a registry
Two ways to hand a package to someone directly:
-
A URL dependency. They add the archive’s URL to their project:
[dependencies] "acme/rock-tools" = { url = "https://packages.studio.example/rock-tools-1.0.0.zip", version = "1.0.0" }The key and
versionmust match the archive’s ownhpm.toml. -
No hpm at all. The archive unzips to
rock-tools.jsonbeside arock-tools/folder. Both go into a Houdini packages directory. See Installing an archive without HPM for the options and the one Houdini install flow to avoid.
SideFX’s hpackage repository
SideFX validates the archive’s package file more strictly than Houdini
does. hpm pack --sidefx produces a file it accepts, or fails and says
why:
hpm pack --sidefx
The main restriction: [compat].houdini must be a single lower bound such
as ">=21.0". A range with an upper bound, including ^21, cannot be
published there. A README.md is required. Details are under
hpm pack.
Withdrawing a version
Mark it yanked in the registry. Ranges then skip it, while projects that already pin that exact version keep installing. Do not delete or replace the archive: every lock file that names it would start failing.
Run a studio registry
A private registry for in-house packages needs no server software. A Git
repository holds the index, and any https file host holds the archives.
Whoever can clone the repository can install from it.
1. Create the index repository
mkdir hpm-index && cd hpm-index
git init
echo '{}' > config.json
git add config.json && git commit -m "Empty index"
config.json must exist; hpm uses it to recognise an index. Push the
repository to your Git host.
2. Pack a package and host the archive
In the package:
hpm pack --json
{"archive":"rock-tools-0.1.0.zip","sha256":"40c67f24...436f","platform":null, ...}
Upload the .zip to a location served over https, for example
https://packages.studio.example/rock-tools-0.1.0.zip.
3. Add the version to the index
Each package has one file, <creator>/<slug>.json, with one JSON object per
line. Append a line for the new version:
mkdir -p acme
cat >> acme/rock-tools.json <<'EOF'
{"name":"acme/rock-tools","vers":"0.1.0","dl":"https://packages.studio.example/rock-tools-0.1.0.zip","cksum":"sha256:40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f","houdini_compat":"^21","description":"Rock scattering tools"}
EOF
git add acme/rock-tools.json && git commit -m "rock-tools 0.1.0" && git push
cksum is the sha256 from hpm pack --json, prefixed with sha256:.
houdini_compat is the package’s [compat].houdini. For a per-platform
archive add "platform":"linux-x86_64", with one line per platform. All
fields are in Registry formats.
4. Add the registry on each workstation
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git
hpm search rock
Found 1 packages matching 'rock':
acme/rock-tools 0.1.0
Rock scattering tools
Houdini: ^21
Or declare it in a project’s hpm.toml, so that everyone who checks the
project out resolves from it without running hpm registry add:
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"
5. Install from it
hpm add acme/rock-tools --registry studio
[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }
--registry pins the dependency to your registry. Without the pin, hpm
asks every configured registry in order and takes the first that has the
package; with it, a package of the same name appearing in a public registry
can never be installed instead.
Publishing a new version
Pack, upload, append a line, push. Then on workstations:
hpm registry update # fetch the index; Git registries are read from a local clone
hpm update acme/rock-tools
hpm does not fetch the index on its own. A version published after the last
hpm registry update is not visible until the next one.
Withdrawing a version
Add "yanked":true to its line and push. hpm add and hpm update stop
choosing it; projects pinned to exactly that version keep installing.
Automating it
Steps 2 and 3 are a few lines of shell in a release pipeline: pack with
--json, upload the archive, build the index line from the JSON, commit and
push to the index repository. See Continuous integration.
Private archives
hpm sends no credentials when it downloads an archive, so the host must serve the file without authentication to the machines that install it: a server reachable only inside the studio network is the usual answer. Access to the index is controlled by Git.
Continuous integration
Two pipelines come up: one for a project that consumes packages (a show setup, a render-farm environment), and one for a package that is built and released. The examples are plain shell; they fit any CI system.
hpm’s regular output is for people. In CI, rely on exit codes, and use
--output json or hpm pack --json where a later step needs a value.
Diagnostics go to stderr, results to stdout.
Installing hpm in a job
VERSION=0.46.0
BASE=https://github.com/3db-dk/hpm/releases/download/v$VERSION
curl -fsSLO $BASE/hpm-v$VERSION-linux-x86_64
curl -fsSLO $BASE/hpm-v$VERSION-linux-x86_64.sha256
sha256sum -c hpm-v$VERSION-linux-x86_64.sha256
install -m 0755 hpm-v$VERSION-linux-x86_64 /usr/local/bin/hpm
Pin the version. Cache ~/.hpm/ between jobs to avoid downloading packages,
uv and Python again.
A project: reproduce the committed lock
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git --if-not-exists
hpm install --frozen-lockfile
hpm audit
- A Git registry is cloned with
git, so the runner needs read access to the index repository: a deploy key for thegit@form, or anhttps://URL the runner can already read. --if-not-existsmakes the registry step safe to repeat. Registries declared in the project’s ownhpm.tomlneed no step at all.--frozen-lockfilefails ifhpm.lockis missing, does not matchhpm.toml, or lacks a checksum. Every downloaded package is checked against the lock.hpm auditexits 1 if an installed package no longer matches what was recorded.
The same three lines prepare a render node. Then start Houdini with
HOUDINI_PACKAGE_PATH=<project>/.hpm/packages.
A nightly job can report available updates without applying them:
hpm --output json update --dry-run
A package: validate on every push
hpm check
hpm pack --json --verify-assets --output /tmp/pack-test
hpm check alone exits 0 on warnings. Packing is the stronger test: it
fails on an invalid manifest and, with --verify-assets, on a declared
operator whose file is not in the archive.
A package: release on a tag
# 1. The tag must match the manifest.
test "v$(grep -m1 '^version' hpm.toml | cut -d'"' -f2)" = "$CI_TAG"
# 2. Build, if the package has compiled parts.
hpm run build-dso
# 3. Pack, signed. The key comes from a CI secret, inline.
export HPM_SIGNING_KEY="$SIGNING_KEY_PEM"
hpm pack --json --verify-assets --output release/ > pack.json
# 4. Upload the archive to your host.
ARCHIVE=$(python3 -c 'import json;print(json.load(open("pack.json"))["archive"])')
SHA=$(python3 -c 'import json;print(json.load(open("pack.json"))["sha256"])')
your-upload-tool "$ARCHIVE"
# 5. Register the version with your registry, using $SHA and the URL.
Notes:
HPM_SIGNING_KEYmay hold the PEM text itself, which is how CI secrets usually arrive; no key file touches the runner’s disk.hpm packrefuses to pack a private key that has ended up inside the package directory.- For a package with
[compat].platforms, run steps 2 to 4 once per platform, each on a runner of that platform. The archives share a version and differ in theplatformfield ofpack.json. Pack on the platform you built on;--platformexists for cross-packing prebuilt binaries, and an archive with Unix executables must be packed on Unix. - Step 5 depends on the registry: a commit to the index repository for a Git registry, or whatever the operator of an API registry provides.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | The command failed |
| 2 | The command line was wrong |
| other | From hpm run: the script’s own exit code |
Run package code outside Houdini
[scripts] gives a package named commands: a build step, a setup wizard, a
render-farm entry point. hpm run <name> runs one, and can give it a Python
environment without anyone installing anything by hand.
A plain command
[scripts]
hello = "echo package root is $HPM_PACKAGE_ROOT"
hpm run hello -- a b
package root is /work/rock-tools a b
- The command runs through the system shell (
sh -c, orcmd /Con Windows), from the directory holdinghpm.toml. HPM_PACKAGE_ROOTis that directory.- Everything after the script name is passed to the command.
- hpm exits with the command’s exit code.
Use -m <dir> or -C <dir> to run a script of a package elsewhere.
Different commands per OS
Shell syntax differs between sh and cmd.exe ($VAR against %VAR%),
so give cmd one variant per OS where it matters:
[scripts.register]
cmd = [
{ when = { os = "windows" }, set = "\"%HPM_PACKAGE_ROOT%\\bin\\tool.exe\" register" },
{ when = {}, set = "\"$HPM_PACKAGE_ROOT/bin/tool\" register" },
]
The first matching variant runs; when = {} matches any OS.
A script with its own Python packages
A script that needs Python packages declares them, and hpm builds a virtual environment for it on first run:
[scripts.setup]
cmd = "python scripts/setup_wizard.py"
python = "3.11"
requirements = ["PySide6>=6.6", "pyyaml"]
hpm run setup
python in the command is then the environment’s interpreter. The
environment contains only the listed requirements. It does not include
the package’s own modules or its [python_dependencies].
Use this for tools that stand apart from the package’s code: installers, code generators, linters.
A script that imports the package
Code that ships in the package and runs outside Houdini, such as a farm
task or a command-line tool, needs the same imports it has inside Houdini.
package-env = true provides them:
[scripts.submit]
cmd = "python -m rock_tools.submit"
package-env = true
hpm install # once, so the project is locked and its packages are present
hpm run submit -- --shot 010
The script runs with:
- the project’s and its dependencies’
[python_dependencies]installed, for the Python of the project’s Houdini; - the package’s
python/folder and each dependency’spython/folder onPYTHONPATH.
It does not provide hou. For that, the command itself must be hython
from a Houdini installation.
On a render farm
A farm job that should run with a project’s packages needs two lines on the worker:
hpm install --frozen-lockfile -C /path/to/project
hpm run submit -C /path/to/project -- --shot 010
The first reproduces the project’s lock on that machine; the second runs inside its environment. Nothing about the environment is set up in the job script.
Scripts as build steps
hpm build runs the scripts named in [stage].prepack before it assembles
the package, so [scripts] is also where a compile step lives. See
Ship an HDK plugin.
Reference
[scripts] and hpm run, including
the Windows rules for arguments.
Set a project’s environment
Packages bring their own environment variables. A project often needs to
add to them or overrule them: the show’s OCIO config, an asset root, an
extra Python path. The project’s own [runtime] section does that, and it
is applied after every package.
Set a variable for the project
In the project’s hpm.toml:
[runtime]
SHOW_ROOT = { method = "set", value = "/mnt/shows/rocks" }
OCIO = { method = "set", value = "/mnt/shows/rocks/color/config.ocio" }
hpm install
After a restart, Houdini has both. No package needs to mention the
variable. set on OCIO replaces the config Houdini ships with, rather
than being added to it.
Add to what packages provide
[runtime]
PYTHONPATH = { method = "append", value = "/mnt/shows/rocks/python" }
HOUDINI_OTLSCAN_PATH = { method = "prepend", value = "/mnt/shows/rocks/otls" }
With prepend and append, every package keeps its own contribution and
the project’s value is merged in once, after all of them. Houdini supplies
the path separator.
Overrule a package
If a package sets a variable and the project wants a different value, use
set in the project:
Project’s method | Result |
|---|---|
set | Only the project’s value remains. |
prepend, append | Package values stay; the project’s is added. |
Variables a package requires
A package can demand a value without choosing one:
# in the package
[runtime]
ROCK_TOOLS_LIBRARY = { method = "set", required = true }
A project that uses the package must then supply it, or hpm install
fails:
# in the project
[runtime]
ROCK_TOOLS_LIBRARY = { method = "set", value = "/mnt/shows/rocks/library" }
If the package gives required = true together with a value, that value
is the default and the project may leave it out.
Different values per OS
[runtime.SHOW_ROOT]
method = "set"
value = [
{ when = { os = "windows" }, set = "S:/shows/rocks" },
{ when = {}, set = "/mnt/shows/rocks" },
]
Houdini picks the variant at startup, so one committed hpm.toml serves
every workstation.
Things to know
$HPM_PACKAGE_ROOTmeans “this package’s directory” and has no meaning in a project’s[runtime]. Use real paths there.- Other
$VARIABLESare expanded by Houdini at startup, so"$HIP/cache"or"$HOME/presets"work. - The project’s entries are written to
.hpm/packages/~hpm-project-overrides.json. The name sorts after every package’s file, which is what makes Houdini apply it last. - Global installs (
hpm global add) have no project and therefore no project overrides.
Reference: [runtime].
Keep disk usage down
hpm never deletes a package on its own. hpm remove and hpm update leave
the old version in the store, because another project may use it. hpm clean removes what nothing uses, and to do that it has to know where your
projects are.
1. Tell hpm where your projects are
hpm clean treats a package as in use when a project it knows about depends
on it. It finds projects through [projects] in ~/.hpm/config.toml:
[projects]
search_roots = ["/home/me/houdini-projects", "/mnt/shows"]
explicit_paths = ["/home/me/pipeline-tools"]
max_search_depth = 3
search_rootsare scanned for directories containing anhpm.toml, down tomax_search_depthlevels.explicit_pathsare individual projects that are always counted.
Until this is set, hpm clean removes nothing. With no projects, every
package would look unused, so it stops instead:
No HPM-managed projects found - skipping cleanup to prevent removing all packages
The reverse also holds: a project outside these locations is invisible, and
its packages will be removed. They are not lost; the next hpm install in
that project downloads them again.
Packages installed with hpm global add are always kept.
2. Look before deleting
hpm clean --dry-run
Found 1 orphaned dev installs:
- _dev/rock-tools@0.1.0
Run 'hpm clean' to remove these packages
3. Clean
hpm clean # packages and development copies; asks first
hpm clean --yes # without asking
hpm clean --python-only # only Python environments
hpm clean --comprehensive # packages, development copies and Python environments
Close Houdini sessions first. A session started from a project you have since reinstalled may still be reading a development copy that hpm now considers replaced.
What uses the space
du -sh ~/.hpm/*
| Directory | Holds | Reclaim with |
|---|---|---|
packages/ | Installed packages | hpm clean |
venvs/ | Python environments | hpm clean --python-only |
cache/ | Downloaded archives | Delete it; archives are fetched again when needed |
uv-cache/ | Downloaded Python wheels | Delete it |
uv-python/ | CPython builds | Delete it; fetched again on the next Python install |
A Python environment is removed when none of the packages that used it are installed any more. One with no recorded users, which is what a script’s own environment looks like, is removed after 30 days without use.
A shared or larger disk
To move everything hpm stores:
[storage]
home_dir = "/fast-disk/hpm"
Generated package files contain absolute paths into the store, so run
hpm install in each project after moving it.
Do not point several users at one store on a shared volume unless they can all be trusted with each other’s Houdini sessions: whoever can write to the store can change what the others load.
CLI reference
Every hpm command, its flags and what it does. For task-oriented
walkthroughs see the guides; for the manifest those commands read see
the hpm.toml reference.
Global options
Available on every command, before or after the subcommand name, except
--output, which goes before it (hpm --output json list): build and
pack have their own --output <dir>.
| Option | Description |
|---|---|
-v, --verbose | Show progress logs on stderr (-vv for more). By default only warnings and errors appear there. |
-q, --quiet | Suppress non-error output. |
--color <when> | auto, always, or never. |
--output <format> | human (default), json, json-lines, json-compact. The JSON error document follows the same format. |
-C, --directory <dir> | Run as if invoked from <dir>: the project is found there, and relative paths in other arguments resolve against it. |
Commands that work on a project (add, remove, update, list, install,
check, build, pack, run, audit) also take -m, --manifest <path>,
naming the project’s hpm.toml or the directory holding it.
hpm init
Create a new HPM package.
hpm init [OPTIONS] [NAME]
Options
| Flag | Default | Description |
|---|---|---|
--description <text> | — | Package description. |
--author <name> | git config user.* if set | Author ("Name <email>"). |
--version <v> | 0.1.0 | Initial version. |
--license <id> | MIT | License identifier. |
--houdini <range> | ^21 | [compat].houdini Cargo-style range (e.g. "^21", ">=20.5, <22", ">=21"). Default is bounded to a single Houdini major — see [compat] for why. |
--bare | off | Skip standard directories and generated files; create only hpm.toml. |
--vcs <vcs> | git | git or none. |
Examples
hpm init my-tools
hpm init --bare minimal
hpm init advanced-tools \
--description "Advanced geometry tools" \
--author "Artist <artist@studio.com>" \
--license Apache-2.0 \
--houdini ">=20.5, <22"
hpm add
Add one or more dependencies to hpm.toml.
hpm add [OPTIONS] <PACKAGE>...
<PACKAGE> is creator/slug or creator/slug@version. hpm add resolves
it straight away: a bare name takes the highest non-yanked version in the
configured registries, name@version takes that version, and the exact
version found is written to hpm.toml. It then installs, like hpm install.
Options
| Flag | Description |
|---|---|
--path <dir> | Add as a local path dependency (only valid with a single package). Path dependencies install into a _dev/ subtree of the global packages dir so they never overwrite a registry install at the same (slug, version). |
--link | For path dependencies, install as a symlink (Unix) or NTFS junction (Windows) instead of copying. Working-tree edits become visible to a live Houdini session without re-running hpm install. Requires --path. Packages that declare native [compat].platforms (a DSO/HDK build, not universal) are installed as a copy of their install image even with --link: a linked native binary can’t be rebuilt in place while a Houdini session has it loaded (Windows LNK1104), and a mapped DSO needs a relaunch to reload anyway. |
-m, --manifest <path> | Path to the manifest to modify (hpm.toml or containing dir). Defaults to cwd. |
--optional | Record optional = true on the added dependencies. The flag is metadata: hpm install installs optional dependencies like any other, and hpm list marks them. |
--registry <name> | Resolve from this configured registry only, and record registry = "<name>" in hpm.toml so later installs and updates keep using it. Errors if the name is not configured. Not valid with --path. |
Examples
hpm add acme/utility-nodes@1.0.0
hpm add acme/a@1.0.0 acme/b@2.0.0
hpm add local-tools --path ../local-tools
hpm add local-tools --path ../local-tools --link # live edits → Houdini
hpm add acme/visualize@1.0.0 --optional
hpm add acme/lib@1.0.0 -m /path/to/project
hpm add acme/internal@1.0.0 --registry studio # pin to one registry
hpm remove
Remove a dependency from hpm.toml. This does not delete package files
from ~/.hpm/packages/ — run hpm clean for that.
hpm remove [OPTIONS] <PACKAGE>
| Flag | Description |
|---|---|
-m, --manifest <path> | Manifest to modify. |
hpm install
Install the dependencies hpm.toml declares, at the versions it names.
hpm install [OPTIONS]
Install does the following:
- Loads
hpm.tomland, if present,hpm.lock. Anhpm.lockthat cannot be read stops the install. A lock older than 90 days prints a warning. - Works out the packages to install: every entry of
[dependencies], and every package their versions require that the project does not list, directly or through each other. A registry dependency written as a full version is installed at exactly that version; a range takes the newest version in it that fits. A path or URL dependency takes part at the version its ownhpm.tomldeclares, and brings what that file’s registry dependencies require. Versions are held to the project’s[compat].houdiniand to each other’s requirements: when they cannot all hold, install stops before downloading anything from a registry and names the packages involved. A package the project does not list keeps the versionhpm.lockrecorded while it still fits. - Installs them into the store (
~/.hpm/packages/), several at once: a registry package is downloaded, a URL dependency is downloaded, a path dependency is copied or linked. A package already in the store is reused. Each package the lock pins is checked against its locked checksum, whether it was just downloaded or reused. - Collects
[python_dependencies]from the installed packages, resolves them with the bundleduvfor the Python that matches the project’s[compat].houdini, and installs them into a shared venv under~/.hpm/venvs/<hash>/. - Writes one Houdini package file per installed package to
<project>/.hpm/packages/{creator}.{slug}.json, required packages included, and removes files there for packages no longer installed. - Writes
hpm.lock, with an entry for every installed package.
A required package is looked up in the project’s registries, the first one that has it. It is chosen the way an application that embeds hpm chooses it, so the two install the same set for the same project.
The venv is built from the Python dependencies of the installed packages.
[python_dependencies] in the project’s own manifest are used by
package-env scripts,
not by the venv Houdini loads.
Options
| Flag | Description |
|---|---|
-m, --manifest <path> | Path to hpm.toml (or its containing directory). |
--frozen-lockfile | Fail if hpm.lock is missing or would need to change. Use in CI. |
hpm update
Move registry dependencies to newer versions.
hpm update [OPTIONS] [PACKAGES]...
With no packages, checks every registry dependency. With specific packages, only those.
For each dependency, hpm update asks the registry for all versions and
picks the highest non-yanked one in the dependency’s update range:
- An exact pin such as
1.2.3is searched as^1.2.3, so it moves to the newest release with the same major version (the same minor, for0.x). - A range such as
>=1.2, <1.5is searched as written.
Applying an update rewrites the entry in hpm.toml to the exact version
found, then installs. That install sets aside the versions hpm.lock
recorded for packages the project does not list, so they move to the newest
version that fits too. With no packages named, it does this even when every
listed dependency is current. Path and URL dependencies are left alone, and
so are Python dependencies: uv resolves those again on every install.
With a non-human --output, pass --dry-run or --yes; there is nobody to
answer the prompt.
| Flag | Description |
|---|---|
-m, --manifest <path> | Manifest to operate on. |
--dry-run | Print the proposed plan without applying it. |
-y, --yes | Skip the confirmation prompt. |
Examples
hpm update --dry-run
hpm update
hpm update acme/geometry-tools
hpm --output json update --yes # CI-friendly
hpm list
Display installed dependencies and their metadata.
hpm list [OPTIONS]
| Flag | Description |
|---|---|
-m, --manifest <path> | Manifest to read. |
--tree | Render dependencies as a tree. |
hpm check
Validate hpm.toml and the surrounding project.
hpm check
Check runs:
hpm.tomlexists, parses, and passes manifest validation (scopedcreator/slugpath, semver version,[compat].houdiniparseable,[stage]and[[operators]]per-platform consistency with[compat].platforms).- Soft warnings for: missing description, missing authors, missing keywords, missing
[compat].houdini, missing README or license file, missing.gitignorewhen a.gitdirectory is present, packages larger than 100 MB, and individual files larger than 10 MB. Size is measured over whathpm packwould ship: files excluded by.gitignore,.hpmignoreor[stage](abuild/tree, say) do not count.
Check is advisory — warnings do not fail the command.
hpm run
Execute a script defined in the manifest’s [scripts] table.
hpm run <SCRIPT> [-- ARGS...]
| Argument | Description |
|---|---|
<SCRIPT> | Name of the entry under [scripts]. |
ARGS... | Trailing arguments forwarded to the script verbatim, after shell-quoting. |
Behaviour:
- Looks up the named entry; if its
cmdis a conditional list, the first variant whosewhen.osmatches the host wins. Plain entries always match. - Sets
HPM_PACKAGE_ROOTto the manifest directory and runs the command from that directory through the host shell (sh -con Unix,cmd /Con Windows). - Because it runs through a shell,
cmdis shell syntax, and the two hosts do not share one:shexpands$VAR, whilecmd.exemeans nothing by it and spells the same thing%VAR%. Give each host the spelling its shell reads with a conditionalcmdkeyed onwhen.osrather than expecting one string to work on both. - Forwarded
ARGSare quoted per argument for that shell, so spaces and backslashes reach the script as written, and on Unix quotes do too. On Windows an argument holding a double quote or a line break is refused, becausecmd.exeends its quoting at either. One more Windows case has no escape and is not attempted:cmd.exeexpands%NAME%even inside double quotes, and its command-line parser — unlike a batch file’s — offers no way to suppress it, so an argument containing%NAME%whereNAMEis set in the environment arrives expanded. An unmatched%, or a name that is not set, passes through as written. - For table-form entries with
pythonorrequirements, materializes a uv-managed venv at~/.hpm/venvs/<hash>/, prepends itsbin/(orScripts/on Windows) toPATH, and setsVIRTUAL_ENV. Two scripts whosepython+requirementsresolve to the same closure share one venv on disk. - For entries with
package-env = true, runs inside the package’s full resolved environment instead: the merged venv across the project and its installed dependencies, with every package’spython/onPYTHONPATH. Requireshpm installto have been run. - The script’s exit code becomes
hpm’s exit code, sohpm runis safe to chain in CI or wrap in a Houdini hook.
Example
[scripts.setup]
cmd = "python scripts/setup.py"
python = "3.11"
requirements = ["PySide6>=6.6"]
hpm run setup
hpm search
Search every configured registry for packages matching a query.
hpm search <QUERY>
If no registries are configured, HPM prints instructions to add one.
hpm build
Materialise the install image into a directory. Runs [stage].prepack
scripts (compile DSO, collapse expanded HDAs, etc.), then copies workspace
files into the output directory using the same include/exclude/place
rules hpm pack would apply. The result is what a registry consumer’s
install would look like.
hpm build [OPTIONS]
hpm build is a one-shot CLI verb — it copies files and exits, with no
background watcher. The output directory is yours to manage; common
patterns:
- Single workstation, one Houdini at a time: leave the default
[stage].output_dir(dist/), point Houdini at it, rerunhpm buildwhenever you want a refresh. - Multiple Houdini sessions in parallel: pass
--output <tmpdir>per session and have each session’sHOUDINI_PACKAGE_PATHreference its own staging directory. Avoids cross-session DSO lock conflicts.
Options
| Flag | Description |
|---|---|
-m, --manifest <path> | Path to hpm.toml or containing dir. Defaults to cwd. |
-o, --output <dir> | Override [stage].output_dir. Relative paths resolve against the manifest dir; absolute paths are used verbatim. |
--platform <id> | Target platform. Defaults to host when [compat].platforms is declared. Required when host is not in the declared list. |
--profile <name> | Build profile. Defaults to release. Selects the matching [stage.profile.<name>] table (if any) and is exposed to prepack scripts as HPM_BUILD_PROFILE. |
--houdini-majors <list> | Houdini major versions this build targets, space-separated (e.g. --houdini-majors "21 22"). Forwarded verbatim to prepack scripts as HPM_HOUDINI_MAJORS. Omit to leave it unset. |
--no-prepack | Skip [stage].prepack scripts. Use in CI when build steps already ran out-of-band. |
--no-clean | Keep existing output-dir contents instead of wiping first. |
Prepack environment. In addition to HPM_PACKAGE_ROOT, prepack scripts
(and any [scripts] they invoke) see these build-context variables:
-
HPM_BUILD_PROFILE— the selected--profile(defaultrelease). A single prepack script can branch on it, e.g.cmake --build --config $HPM_BUILD_PROFILE, instead of maintaining one script per build type. -
HPM_PLATFORM— the resolved target platform (e.g.macos-aarch64), set whenever the package declares[compat].platforms. -
HPM_HOUDINI_MAJORS— the set of Houdini major versions this build should target, space-separated (e.g.21 22, or just22). A package that builds one native artifact per Houdini major (a compiled USD resolver, say) reads it to restrict the matrix — build every declared major when it is unset or empty, otherwise only the listed ones. hpm forwards the value verbatim and does not interpret it.hpm buildsets it from--houdini-majors; CI passes the release matrix that way instead of exporting an ad-hoc, unprefixed variable. When the flag is omitted, anHPM_HOUDINI_MAJORSalready present in the environment passes through unchanged, so an out-of-process producer (e.g. a desktop launcher that discovers the machine’s installed majors) can set it and an explicit--houdini-majorsstill overrides. Unset in both = the package’s full declared matrix.
HPM_BUILD_PROFILE, HPM_PLATFORM, and HPM_HOUDINI_MAJORS are set only for
the hpm build prepack path; a standalone hpm run <script> does not carry
build-profile, platform, or Houdini-major context.
Workflow notes — live editing and DSO rebuild
These are user-level concerns; HPM doesn’t model them in the manifest:
- HDA editing. Edits made inside Houdini save back to whatever path
Houdini loaded the HDA from. If you load from
dist/otls/foo.hda(collapsed byhpm build), saves go into the build output and get clobbered on the nexthpm build. If you want round-trip editing, point Houdini at an unstaged expanded HDA dir during dev, and runhpm buildonly when you want to produce the publishable form. - DSO rebuild while Houdini is loaded. On Windows, a loaded
.dllis locked. With--output <tmpdir-A>for session A and--output <tmpdir-B>for session B, yourcmake --build(writing tobuild/<plat>/) doesn’t hit either lock, and a freshhpm build --output <tmpdir-C>writes to a third location — you only hit the lock when you try to rebuild into a directory a live Houdini still has loaded. The typical workflow is one temp dir per Houdini lifetime, thrown away on Houdini close.
hpm pack
Build a distributable archive from the current package.
hpm pack [OPTIONS]
Pack runs hpm check first, then:
-
Auto-generates a Houdini-native
{slug}.jsonfor the archive unless the user has provided one (a hand-written file ships verbatim). This file follows Houdini’s own package format, so the archive is usable by Houdini even without HPM: the archive uses the hpackage layout —{slug}.jsonat the root next to a{slug}/folder holding all package content. See Installing an archive without HPM for how to install one, and which Houdini install flow to avoid. (hpm installstrips the{slug}/wrapper again; installed trees stay flat withhpm.tomlat the root.) The archive is named{slug}-{version}.zip, or{slug}-{version}-{platform}.zipfor a per-platform build; read the path from--jsonrather than building it. -
Filters files by
[stage](per-platformplacerules andinclude/excludeglobs) when the manifest declares[compat].platforms. -
Produces a
.ziparchive plus a SHA-256 checksum. Each entry carries the executable bit of the file it came from, normalised to0755or0644— so a package that ships a program (a[scripts]entry pointing atbin/<platform>/<tool>, a bundledconfigure.sh) installs runnable on macOS and Linux. Only the executable bit survives; the group and other bits are normalised away so that two machines with different umasks pack an identical tree to identical bytes, and therefore to the same checksum.Windows has no file mode to read, so an archive packed there cannot carry an executable bit. Pack an archive containing a Unix program from a Unix host — per-platform CI that builds each archive on its own worker already does. (
hpm installcompensates where it can: see file modes on install.)Symlinks are resolved, not stored. A symlink to a file is packed as an ordinary entry holding the target’s bytes, so a source tree using the usual
libfoo.so -> libfoo.so.1.2.3layout ships both names and installs correctly everywhere, including on Windows. A symlink to a directory is skipped with a warning — the pack walk does not descend through links, so its contents would go missing silently — and a broken link is skipped rather than failing the pack. The result is that hpm archives never contain a link entry, which is what lets extraction refuse them outright. -
If a signing key is supplied, produces an Ed25519 signature over the archive bytes and emits a
keyId. -
Builds a searchable asset index from the manifest’s
[[operators]]declarations and includes it in--jsonoutput (and warns if a declaredsourcefile is missing from the archive).
Options
| Flag | Description |
|---|---|
-m, --manifest <path> | Path to hpm.toml or containing dir. Defaults to cwd. |
--key <path> | Ed25519 PKCS#8 PEM private key. Overrides HPM_SIGNING_KEY. |
--output <dir> | Output directory. Defaults to the current directory. |
--json | Emit the result as JSON (useful in CI). |
--platform <id> | Override host-platform detection. Valid: linux-x86_64, linux-aarch64, macos-x86_64, macos-aarch64, windows-x86_64, windows-aarch64, universal. Only legal when [compat].platforms is declared. |
--verify-assets | Fail the pack (and delete the archive) if any [[operators]] source is missing from the produced archive, instead of just warning. |
--sidefx | Shape the bundled {slug}.json for SideFX’s hpackage repository, so the archive can be uploaded exactly as packed. Fails the pack if the manifest declares something hpackage cannot represent, if the descriptor that actually ships breaks its rules, or if README.md is missing. |
Packing for SideFX’s hpackage repository
SideFX validates the root {slug}.json when an archive is uploaded to its
hpackage repository, and it is stricter than Houdini itself. A publisher that
rewrites the json to satisfy it has to re-zip, which invalidates the checksum
and signature hpm pack just reported. --sidefx emits the accepted form
directly, so the packed bytes are the uploaded bytes.
It changes two things, both confined to that json:
hpackage.versiondrops trailing zero segments while more than two remain, so0.1.0becomes0.1. That is also the version SideFX puts in the served archive’s URL.- Every
>=/<=operand in theenableexpression becomesmajor.minor. A single segment is padded (21to21.0), and a build segment is kept only when it is zero, since21.0.0means the same range as21.0.
The pack fails rather than emit something whose meaning changed:
- A bound with a real build number, such as
>=20.5.445, has no hpackage form. Truncating it to>=20.5would enable the package on builds[compat].houdiniexcludes, and the same expression ships to hpm-managed installs, so the widening would not stay on the SideFX side. Declare a two-segment bound if that is what you mean. - A missing
[compat].houdini, or a range compiling only to<,>,==or!=, leaves SideFX no version to read — it looks only at>=and<=clauses — and it refuses the upload without saying why. Express the lower bound with>=. - A bounded range compiles to more than one clause, and hpackage matches
the whole
enablevalue against a single one.>=21, <23is refused, and so is the^21shorthand, which expands to a lower and an upper bound.
To publish to SideFX, declare a single lower bound such as >=21.0. To
keep an upper bound, host the archive somewhere else. Splitting the range
into several enable keys is not a workaround; see
Design notes.
--sidefx also requires a README.md in the package directory, spelled
exactly that way. hpackage’s uploader reads it and sends its text as the
published description, and refuses when it is absent or still holds the
placeholder its own scaffold writes. hpm’s ordinary README check is looser —
it accepts README.txt and a bare README, and only warns — so a package can
pass hpm check and still be refused on upload.
The bundled descriptor is matched by exact name
If the package directory holds a file named exactly {slug}.json, hpm pack
ships it verbatim instead of generating one. The match is on exact spelling,
compared against the directory’s entries rather than asked of the filesystem:
macOS and Windows answer exists case-insensitively, so a repo holding
FLOPs.json would otherwise ship that file as flops.json when packed there
and the generated descriptor when packed on Linux — the same source tree
producing different archives depending on who built it. A file differing only
by case is reported and skipped, and the descriptor is generated.
Under --sidefx the descriptor that reaches the archive is checked against
hpackage’s rules whichever way it got there. A hand-written file is still
shipped byte for byte — the check only reads it, and never rewrites what an
author wrote — but one declaring a bounded or object enable, or a version
hpackage cannot store, fails the pack with the constraint named rather than
being refused at upload time by whatever tool publishes. Without this the
path hpm generates was the checked one and the path an author hand-writes was
not, so --sidefx silently did nothing on exactly the packages whose author
cared enough to write the file by hand.
The check reads the fields it constrains and ignores the rest, so a
hand-written descriptor may use Houdini keys hpm does not model. Generated
descriptors go through the same check, which is what keeps the generator and
the check from drifting apart. A hpackage.version SideFX will store
differently is reported but allowed: 0.1.0 uploads as 0.1, and the served
archive’s URL uses the trimmed form.
The flag does not affect an hpm install: the extractor skips this file and
generates its own package json. It matters to a manual unzip into a Houdini
packages directory, and to SideFX’s uploader.
Asset index in --json output
--json adds an assets array alongside the existing checksum/signature
fields. Each entry describes one bundled operator; None fields are omitted.
HDA-vs-DSO is carried by kind (hda_operator / dso_operator).
{
"archive": "rbd-tools-1.0.0.zip",
"sha256": "…",
"signature": null,
"key_id": null,
"platform": null,
"assets": [
{
"kind": "hda_operator",
"type_name": "studio::rbd_configure::2.0",
"label": "RBD Configure",
"category": "Sop",
"namespace": "studio",
"op_version": "2.0",
"tab_submenu": "Studio/Dynamics",
"icon": "SOP_rbd",
"source_file": "otls/rbd.hda"
},
{
"kind": "dso_operator",
"type_name": "studio::fast_scatter",
"label": "Fast Scatter",
"category": "Sop",
"namespace": "studio",
"source_file": "dso/scatter.so"
}
]
}
The index is built from declarations, not by parsing the bundled files —
see [[operators]] for why and how to declare them.
Signing key resolution order
--key <path>(CLI flag).HPM_SIGNING_KEYenvironment variable. If its value starts with-----BEGIN, it’s treated as inline PEM; otherwise it’s a path.[signing].key_pathin~/.hpm/config.toml.
Generating a signing key
openssl genpkey -algorithm ed25519 -out signing.pem
openssl pkey -in signing.pem -pubout -out signing.pub.pem
Keep signing.pem secret, and outside the package directory: hpm pack and
hpm build refuse to package any file that is a PEM private key, and any link
that points outside the package. Publish signing.pub.pem so consumers can
verify.
See Security for the wire format.
hpm audit
Run a security audit on the current project.
hpm audit [OPTIONS]
| Flag | Description |
|---|---|
-m, --manifest <path> | Manifest to audit. |
Audit checks:
- HTTP URLs — flags any
url = ...dependency whose URL ishttp://rather thanhttps://. - Lock file presence — warns if
hpm.lockis missing. - Lock file staleness — warns if
hpm.lockis older than 90 days. - Checksum verification — verifies every cached package in
~/.hpm/packages/matches the checksum stored inhpm.lock. - Installed files — compares each locked package’s installed files with the record its install wrote (missing, truncated or changed files).
The first three are advisories: they print WARN and the audit still
succeeds. Checksum and installed-file failures, and an hpm.lock that cannot
be read, are integrity failures: they print FAIL and hpm audit exits 1.
See Security for more.
hpm global
Install a package into Houdini’s user preferences, so it loads in every session of one Houdini version without a project or launcher wiring.
hpm global add <PACKAGE> --houdini <X.Y> [--registry <name>]
hpm global list --houdini <X.Y>
hpm global remove <PACKAGE> --houdini <X.Y>
<PACKAGE> is creator/slug or creator/slug@version; a bare name resolves
to the highest non-yanked version. Resolution goes through the configured
registries exactly like hpm add, including the --registry pin.
--houdini <X.Y> is required and is not guessed. hpm does not discover
Houdini installations, and the preferences directory is per-version, so a
default would risk writing where your Houdini never looks. A full build
string is accepted (21.0.729) and truncated to its major.minor line.
The manifest is written as hpm-<creator>.<slug>.json into:
| Platform | Directory |
|---|---|
| Linux | ~/houdiniX.Y/packages/ |
| macOS | ~/Library/Preferences/houdini/X.Y/packages/ |
| Windows | %USERPROFILE%\Documents\houdiniX.Y\packages\ |
HOUDINI_USER_PREF_DIR takes precedence when set, with __HVER__ expanded
to X.Y, matching Houdini’s own behaviour.
That directory is not hpm’s. It holds files from SideFX, other tools, and
you. Unlike a project install — which owns <project>/.hpm/packages/ and
sweeps anything unrecognized out of it — hpm global never scans that
directory to decide what to delete. Every removal is driven off the ledger at
~/.hpm/global/houdini-<X.Y>.json and touches only files hpm recorded
writing. Files you put there by hand are left alone.
A package whose [compat].houdini does not include the target version is
rejected before anything is written. Installing it anyway would emit a
manifest whose enable expression is false, and Houdini would ignore it in
silence.
hpm global remove deletes the manifest but leaves the package in the store,
matching hpm remove. Run hpm clean to reclaim the space.
There is no hpm global update yet: with no manifest to rewrite, updating is
hpm global add at the new version, which replaces the entry in place.
Examples
hpm global add acme/utility-nodes --houdini 21.0
hpm global add acme/utility-nodes@1.2.0 --houdini 21.0 --registry studio
hpm global list --houdini 21.0
hpm global remove acme/utility-nodes --houdini 21.0
Only public packages resolve today: the standalone CLI has nowhere to store credentials, so it always resolves anonymously. A private package fails as “not found”.
hpm clean
Remove orphaned packages, dev (path-dep) installs, and/or venvs that no active project depends on.
Globally installed packages are roots here too — they belong to no project,
so without the global ledger they would look unreferenced and be deleted out
from under a manifest Houdini still loads. If a ledger cannot be read,
hpm clean refuses to run rather than risk that.
hpm clean [OPTIONS]
| Flag | Description |
|---|---|
-n, --dry-run | Print what would be removed, without touching anything. |
-y, --yes | Skip confirmation. |
--python-only | Clean only orphaned venvs. |
--comprehensive | Clean packages, dev installs, and venvs. |
HPM identifies active projects via [projects] in ~/.hpm/config.toml
(explicit_paths plus recursive search_roots; see
Configuration). If that finds no project at all,
hpm clean removes nothing: with no project to mark packages as used,
every package would look orphaned. Three classes of artifact
are considered:
- Registry/URL packages in
~/.hpm/packages/<slug>@<version>/: preserved if reachable from any active project’s dependency graph. A project’s roots are its[dependencies]and every package itshpm.lockrecords, at the locked version, so a required package the lock kept at an older version is preserved even when a newer one is installed too. - Dev installs in
~/.hpm/packages/_dev/<slug>@<version>/(created by{ path = "..." }deps, copy or link mode): preserved if any active project’s path-dep source manifest reports that(slug, version). Entries are listed as_dev/<slug>@<version>so the source of each is obvious. Link installs are unlinked safely — never followed. A copy is content-addressed as_dev/<slug>@<version>/<source-hash>/, so each rebuild makes a new directory.hpm installremoves the copies it supersedes once no project’s packages point at them;cleandoes the same for every package, including copies made by an earlier hpm, and keeps the current build. A copy a project still points at, or that a process recorded as using it still runs from, is kept. hpm does not know about a Houdini you started yourself against a project you have since re-installed, so close such sessions beforeclean. - Python venvs under
~/.hpm/venvs/: preserved if any kept package declares matching[python_dependencies]. Removed only when--python-onlyor--comprehensiveis set.
A project whose path-dep source can’t be read (workspace moved or
deleted) logs a warning and doesn’t block cleanup of other dev installs;
re-run hpm install after fixing the path to reinstate anything that was
swept.
hpm registry
Manage registries in ~/.hpm/config.toml. See Registries.
hpm registry add <URL> [--name <alias>] [--type api|git] [--if-not-exists]
hpm registry list
hpm registry remove <NAME>
hpm registry update
If --type is omitted, HPM infers it: URLs ending in .git or hosted on
github.com / gitea.* are treated as git; everything else is api.
Pass --if-not-exists to make add idempotent: if a registry with the same
name already exists it is left unchanged and the command exits 0, instead of
erroring. Useful in provisioning scripts.
hpm completions
Emit shell completion scripts — see Install.
Output formats and automation
All commands emit human-readable output by default. The --output global
flag selects a machine-readable format instead:
| Format | When to use |
|---|---|
human | Default. Colored, styled for terminal use. |
json | Pretty-printed JSON. |
json-lines | One JSON object per line. Good for streaming and log ingestion. |
json-compact | Single-line JSON. Minimal bandwidth. |
Structured output is supported by list, check, update, search, and
pack. Commands whose output is inherently interactive (init, add,
remove, install, build, audit, run, clean, registry, global,
completions)
reject a non-human --output with a clear error rather than silently
ignoring it.
Errors in any machine-readable format are also emitted as JSON, with fields
success, error, error_type, and elapsed_ms.
See Continuous integration for a full pipeline.
hpm --output json update --dry-run is useful for nightly jobs that want to
detect available updates without applying them.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | An hpm failure: bad configuration, a missing or invalid manifest, a failed install, a network or I/O error, an hpm audit integrity failure, a registry hpm registry update could not refresh. |
| 2 | A usage error: an unknown flag, or a value a flag does not accept (--vcs, --type, --platform, --houdini, conflicting flags). |
| N | hpm run passes through the exit code of the script it ran. |
The hpm.toml manifest
hpm.toml describes one directory to hpm. The same file plays two roles:
it describes a package (what hpm pack ships, and what other projects
depend on), and it describes a project (the dependencies hpm install
makes available to Houdini). See Concepts for the difference.
Unknown keys are errors that name the key, in every section, so a typo such
as optinal = true is reported instead of ignored.
A minimal manifest:
[package]
path = "acme/my-tools"
name = "My Tools"
version = "1.0.0"
All sections, in the order they appear in practice:
[package]
| Field | Required | Description |
|---|---|---|
path | yes | Scoped identifier, creator/slug. Both segments must be kebab-case (lowercase letters, digits, hyphens). Example: acme/rock-tools. hpm init defaults the creator to local, producing local/<name> — change it before publishing. |
name | yes | Freeform display name. |
version | yes | Semantic version per semver.org. major.minor.patch is required; pre-release identifiers (1.0.0-alpha.1, 1.0.0-rc.2) and build metadata (1.0.0+build.5) are accepted. |
description | no | Short description. |
authors | no | List of "Name <email>" strings. |
license | no | License identifier (e.g. MIT, Apache-2.0). |
readme | no | Path to README, relative to the package. Defaults to README.md for init-generated packages. |
homepage | no | Project homepage URL. |
repository | no | Repository URL. |
documentation | no | Documentation URL. |
keywords | no | List of keywords for discovery. |
categories | no | List of categories. |
[compat]
Target-environment compatibility for the package. Two axes:
houdini— a Cargo-style version requirement string.platforms— the native platforms this package supports. Omit (or use["universal"]) for pure-data / pure-Python packages; list the platforms the package ships binaries for otherwise.
[compat]
houdini = "^21" # default — Houdini 21.x only
# houdini = ">=20.5, <22" # explicit range
# houdini = "~21.5" # tilde: >=21.5, <21.6
# houdini = "21" # bare = caret = ^21
# houdini = ">=20.5" # unbounded above — only safe for pure-data
platforms = ["linux-x86_64", "macos-aarch64"] # omit for pure-data
The supported operators are =, >=, >, <=, <, ^, ~, and the
bare-version shorthand (aliases caret). Multiple comparators combine with
and when separated by commas. The same grammar is reused inside
[runtime] conditional values (when = { houdini = "^21" }).
The lower bound of [compat].houdini on the root manifest drives the
bundled Python version. A dependency package’s range is a compatibility
floor only and does not influence the venv ABI. See Python guide.
Why the default is bounded above
Houdini’s binary compatibility doesn’t survive a major-version bump.
A DSO compiled against the Houdini 21 SDK won’t load in Houdini 22;
some Python module signatures shift between majors too. The init
template defaults to houdini = "^21" (Houdini 21.x only) for that
reason — authors who ship binaries get a safe starting point, and
authors of pure-data / pure-Python packages can widen the range
explicitly after testing on the next major.
hpm check warns when [compat].platforms is non-empty but
[compat].houdini is unbounded above (e.g. ">=21"). That catches
the failure mode where a native-binary package installs cleanly on a
newer Houdini and then crashes at load.
[dependencies]
HPM package dependencies. Keys are scoped creator/slug paths. Values take
one of four shapes:
[dependencies]
# 1. Registry, version-only (shorthand)
"acme/utility-nodes" = "1.0.0"
# 2. Registry with options
"acme/material-library" = { version = "2.0.0", optional = true }
"acme/internal-tool" = { version = "1.0.0", registry = "studio" }
# 3. Direct URL (pre-built archive — ZIP or gzipped tar both accepted)
"acme/prebuilt" = { url = "https://packages.studio.example/prebuilt-1.0.0.zip", version = "1.0.0" }
# 4. Local path (development). Installs a copy of the package's install
# image: the files `hpm pack` would ship (see [stage]), not the whole
# workspace, so .git/, build trees and virtualenvs are never copied.
"local/local-tools" = { path = "../local-tools" }
"local/optional-tools" = { path = "../optional-tools", optional = true }
# 5. Local path, installed as a symlink/junction (live edits)
# Working-tree edits become visible to a live Houdini session without
# re-running `hpm install`. Otherwise identical to (4): same _dev/ namespace
# isolation, no effect on registry installs at the same coordinate.
"local/linked-tools" = { path = "../linked-tools", link = true }
A registry = "<name>" key pins the dependency to one configured registry.
The pin is authoritative: resolution, install, and hpm update all consult
only that registry, and pinning a registry that is not configured is an error
rather than a silent fallback to the rest of the set. Without the key, a
dependency resolves across every configured registry in order, first match
wins. Add a pin from the command line with hpm add <package> --registry <name>.
optional = true is a label. hpm install installs an optional dependency
like any other and hpm list marks it; a client that composes projects may
use it to offer the dependency as a choice.
A URL dependency’s archive must contain an hpm.toml whose path and
version match the dependency’s key and version, and version must be a
semantic version. An archive that declares another identity is refused.
hpm.lock records the installed version and a SHA-256
checksum for each dependency, so later installs reproduce the same bytes.
Versions and ranges
A full version ("1.0.0") on its own means exactly that version, here as
everywhere in the manifest. Anything else is a range in Cargo’s syntax:
"^1.0", "~1.2", ">=1.0, <2". Inside a comma list each comparator
follows Cargo, so a bare full version there is a caret: ">=1.0, 1.2.3"
means ">=1.0, ^1.2.3".
Which of the two to write depends on who reads the manifest:
-
In a project you install with
hpm install, write exact versions. An exact version installs that version; a range installs the newest version in it that fits, andhpm.lockkeeps the choice untilhpm update.hpm addandhpm updatechoose a version for you and write it back as an exact one. -
In a package you publish, write the range you have tested against. When a version is published, its registry dependencies (not
pathorurlones) are registered with it, and the registry serves them as that version’sdeps.hpm install(and an application that embeds hpm) chooses versions for the whole project: it gives each unpinned package the newest version whose[compat].houdinisupports the project’s Houdini and whose ranges agree with the versions chosen for the other packages, and adds a required package the project does not list. It never chooses a yanked version of a package the project does not pin, whatever the range says, an exact one included: a yanked version is installed only where the project itself names it at that version. Nor does it choose a version that has neither a build for the machine it installs on nor a universal one; it takes the newest version that has. A version the project pins is kept, and installing it fails with an error that names it. Give an upper bound when a dependency’s next release may break you:[dependencies] "acme/core" = ">=0.47, <0.48"
So a project lists the packages it uses, and hpm install adds what they
need. A path dependency counts as the version its hpm.toml declares, and
its registry dependencies are followed the same way.
[python_dependencies]
Python packages the package needs inside Houdini, installed through the
bundled uv into a shared venv:
[python_dependencies]
# Version constraint shorthand
numpy = ">=1.26,<3"
# Detailed form
requests = { version = ">=2.25.0", extras = ["security", "socks"] }
matplotlib = { version = ">=3.5", optional = true }
A table gives version, extras, or both.
Versions are PEP 440 specifiers, the syntax pip and uv use, and they are
passed to uv as written. This is not the syntax of [dependencies]:
| Write | Not | Because |
|---|---|---|
"==1.26.4" | "1.26.4" | A bare version has no operator. The requirement becomes numpy1.26.4, which uv reads as a package name. |
"~=1.26" or ">=1.26,<2" | "^1.26" | ^ is not a PEP 440 operator; uv rejects it. |
"*" means any version.
Each entry must be one plain requirement: the name and extras are PEP 508
names, and the version holds only version-specifier characters, with a -
only after a letter or digit (1.0-1). Direct URLs (name @ url),
environment markers and pip options are refused when the manifest loads.
optional = true leaves the dependency out: hpm does not install it, and
there is no switch that turns it on. Use it to record a dependency users may
install themselves.
When two installed packages declare the same Python package, their version
constraints must be spelled identically. >=1.20 in one and >=1.21 in
the other is a conflict, even though both could be satisfied.
hpm.lock does not pin Python packages; uv resolves the constraints again
on each install. Pin with == where you need the same version every time.
See Python environments for the Houdini-to-Python mapping
and how venvs are shared.
[runtime]
Environment variables to set when Houdini loads the package. The key is
the variable name; the value is a { method, value } pair:
[runtime]
MY_PLUGIN_ROOT = { method = "set", value = "$HPM_PACKAGE_ROOT/config" }
HOUDINI_TOOLBAR_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/toolbar" }
HOUDINI_AUDIT_LOG = { method = "append", value = "$HPM_PACKAGE_ROOT/logs/audit" }
| Method | Effect |
|---|---|
set | Replace the variable. |
prepend | Prepend to the existing variable (Houdini picks the platform separator). |
append | Append to the existing variable. |
Use $HPM_PACKAGE_ROOT to refer to the installed package directory. HPM
merges these entries with its built-in PYTHONPATH and HOUDINI_SCRIPT_PATH
entries when generating the Houdini package file. The exact JSON each method
becomes, and why, is in
How Houdini loads hpm packages.
Required variables
A package can declare an env var as required without giving it a value.
Any project that depends on the package must then supply the value in its
own [runtime] section in hpm.toml. hpm install (and project sync)
errors out otherwise — the package isn’t launchable without it.
# In the package's hpm.toml
[runtime]
PROJECT_ASSETS = { method = "set", required = true }
# In the consuming project's hpm.toml
[runtime]
PROJECT_ASSETS = { method = "set", value = "/mnt/studio/assets" }
required = true may be combined with a value; the value then acts as
a default and the project override becomes optional. Without a value, the
entry is a hard placeholder.
Project overrides
A consuming project can override any package-declared variable by
re-declaring the same key in its own [runtime]. How the project entry
combines with the package’s depends on the project entry’s method:
Project method | Result |
|---|---|
set | Replaces every package contribution wholesale — only the project’s value survives. |
prepend / append | Extends them — each declaring package’s own entry stays in place, and the project’s value merges in once, after all of them. |
So a project append/prepend adds to a package-provided value (e.g.
extending a package’s PYTHONPATH) rather than clobbering it. Use set
when you genuinely want to replace what the packages contribute.
A project [runtime] entry takes effect even when no package declares the
variable. It has no owning package, so $HPM_PACKAGE_ROOT is undefined in
it. How Houdini loads hpm packages
describes the file these entries are written to.
Conditional values
value accepts either a flat string or an ordered list of { when, set }
variants. The variants are selected against four axes; the first match
wins per the rules below.
[runtime.PXR_PLUGINPATH_NAME]
method = "prepend"
value = [
{ when = { houdini = "^21" }, set = "$HPM_PACKAGE_ROOT/resolver/houdini21/r" },
{ when = { houdini = "^22" }, set = "$HPM_PACKAGE_ROOT/resolver/houdini22/r" },
]
| Field | Form | Evaluated by | Compiles to |
|---|---|---|---|
houdini | Cargo-style req: "^21", "~21.5", ">=21, <22.5", "21" (alias for ^21) | Houdini at startup | houdini_version >= 'X' and houdini_version < 'Y' |
os | "linux", "macos", "windows" | Houdini at startup | houdini_os == '<os>' |
python | "3.11", "python3.10", etc. | Houdini at startup | houdini_python == 'python<v>' |
install_source | "dev" (path dependency) or "registry" (registry/URL install) | hpm at install time | filtered out before emission |
The first three axes lower into Houdini’s package.json expression form
per https://www.sidefx.com/docs/houdini/ref/plugins.html. install_source
is install-time evaluated by hpm — variants gated to a non-matching
install source are dropped before the Houdini package.json is written, so
a "dev" branch never ships to a registry consumer’s manifest and a
"registry" branch never fires in the dev’s own Houdini.
All present axes combine with and within a single when. Order matters:
the first matching branch wins. (Houdini itself applies every matching
element of a conditional value array, so hpm compiles each emitted branch
to exclude all earlier branches’ conditions — first-match is guaranteed by
the emitted expressions, and anything after an always-true branch is
dropped as unreachable.) An empty when = {} is the always-true fallback
and should appear last. $HPM_PACKAGE_ROOT is substituted in each branch,
just like in flat values; any other $VAR (e.g.
$HOUDINI_MAJOR_RELEASE) passes through verbatim so Houdini’s own
variable expansion handles it.
Malformed selectors fail at manifest validation time, so authors find them before publish, not at install.
HDK plugins: where a dev install finds its DSOs
Point HOUDINI_DSO_PATH at the directory your [stage] rules place the
binaries into, the same value for a dev install and a registry install:
[runtime]
HOUDINI_DSO_PATH = { method = "prepend", value = "$HPM_PACKAGE_ROOT/dso" }
[stage.platform.windows-x86_64]
place = [{ from = "build/Release/*.dll", to = "dso/" }]
A dev install is not the workspace. A path dependency is installed as a
copy of the staged image: exactly the files hpm build would stage for
this machine (.gitignore + .hpmignore, [stage] include/exclude, the
release profile, and the host’s [stage.platform.*] place rules), in a
content-addressed _dev/<slug>@<version>/<hash>/ directory. A package that
declares native platforms in [compat].platforms is always copied, even with
link = true, so a rebuild is never blocked by the DLL a running Houdini has
mapped. A build tree such as build/Release is usually gitignored or moved by
a place rule, so it does not exist in a dev install: a dev variant pointing
HOUDINI_DSO_PATH at it gives Houdini a directory that isn’t there, and the
dev launch registers no operators, with no error. Pointing at the placed
dso/ works for both install kinds, and a rebuild reaches the next dev
install through the place rule.
Keep install_source for values that really differ between the developer’s
own Houdini and a consumer’s, such as a dev-only debug switch:
[runtime.MYPLUGIN_DEBUG]
method = "set"
value = [
{ when = { install_source = "dev" }, set = "1" },
{ when = {}, set = "0" },
]
Only a link = true install of a package with no native platforms points
at the workspace itself, so a build-tree path resolves only there. Don’t rely
on it for DSOs: a native package should declare its platforms, which makes
its dev install a copy.
[stage]
Defines how the install image is derived from the workspace. [stage]
governs both hpm pack (which streams an archive directly from the
workspace, applying these rules) and — when present — hpm build (which
materialises the same image into output_dir on disk so a path-dep
consumer can pick it up live).
[stage]
# Where `hpm build` materialises the install image. Default: "dist".
output_dir = "dist"
# Scripts (named entries from [scripts]) to run before staging. Fail-fast.
prepack = ["build-dso"]
# Gitignore-style globs applied on top of .gitignore and .hpmignore.
# Empty `include` means "everything not excluded". Always-excluded: .git/, .hpm/.
include = ["python/**", "otls/**", "config/**", "LICENSE", "README.md"]
exclude = ["src/**", "tests/**"] # exclude wins over place: never exclude what a place rule names
# Per-platform place rules. The platform key must appear in [compat].platforms.
[stage.platform.linux-x86_64]
place = [{ from = "build/linux/*.so", to = "dso/" }]
[stage.platform.macos-aarch64]
place = [{ from = "build/macos/*.dylib", to = "dso/" }]
[stage.platform.windows-x86_64]
place = [{ from = "build/win/*.dll", to = "dso/" }]
Platforms. Valid platform identifiers (the spelling registries use): linux-x86_64, linux-aarch64, macos-x86_64,
macos-aarch64, windows-x86_64, windows-aarch64, universal. Use
universal for OS-agnostic content (pure-Python / data). Declare the
platforms you ship under [compat].platforms; each per-platform
[stage.platform.<plat>] table must reference a platform listed there.
Place rules. Each rule has a from glob (workspace-relative) and a
to path (archive-relative). If to ends with / or /. it’s a
directory; the file’s basename is appended. "./", "." and "" name
the root of the install image, also as a directory. Otherwise to is the
literal archive path (use when relocating a single file under a renamed
name). Both from and to use forward slashes regardless of host OS.
to must stay inside the install image: a to with a .. component, a
leading /, a drive, a backslash or a colon fails the manifest load.
Two files placed at the same archive path, for example two matches of a
literal to, or build/Release/foo.dll and build/Debug/foo.dll under
one directory, fail hpm pack, hpm build and dev installs with an error
naming both.
Where to put native binaries. Place them in Houdini’s convention
folders at the package root — dso/ for HDK plugins, apexdso/ for APEX
callbacks — rather than in a version- or platform-keyed tree that a
[runtime] variable has to point at. Houdini finds those folders beneath
any HOUDINI_PATH entry, and the generated {slug}.json puts the package
root there via hpath, so the operators register with no environment at
all. This is what SideFX’s own packages do: $HFS/packages/apex.json
contains nothing but {"hpath": "$HFS/packages/apex"}.
The reason is reach. A [runtime] variable only arrives if something
actually reads the manifest — an hpm-managed install, or the generated
{slug}.json sitting beside the content. Houdini’s Package Browser
discards it (see Installing an archive without HPM),
so a package that needs one to locate its own binaries loads its HDAs and
toolbars there but registers no operators, with no error. Convention
folders work on every install route; [runtime] does not.
place is what makes this cheap: let the build write wherever suits it and
relocate at pack time, leaving the source tree alone. A dev install is a copy
of that same staged image, so the placed path is the one to point at there too
(see HDK plugins: where a dev install finds its
DSOs).
Per-platform packing semantics. When packing for --platform <X>:
- A path matched by
[stage.platform.X].place[*].fromis included at the rewrittentopath. The target’s claim wins over other platforms’. - A path matched only by
[stage.platform.Y].place[*].from(someY != X) is excluded. - A path matched by no
placerule and not covered by[stage].excludeis included as common content at its workspace-relative path. (If[stage].includeis non-empty, common content is restricted to paths matching one of those globs.)
Two rules take precedence over all of the above:
- A path matched by
[stage].excludeis left out even when aplacerule names it. - A path ignored by
.gitignoreor.hpmignoreis left out even when aplacerule names it. Re-include build outputs with a!rule in.hpmignore(below).
This means listing the same from glob under every platform is a valid
way to declare “this content ships in every per-platform archive”
(e.g. a shared resolver path).
Build vs pack. hpm pack reads [stage] directly and streams the
archive from the workspace — useful in CI where you build immediately
before packing. hpm build runs prepack scripts and materialises the
same install image into output_dir on disk, so a path-dep consumer
working in another project can pick it up live (with link = true,
edits flow through without re-running hpm install). A copied path
dependency ({ path = "..." }, or a native package with link = true)
installs this same image for the host platform, using the base [stage]
plus the release profile.
.hpmignore. Ignore rules come from .gitignore and then
.hpmignore, both in gitignore syntax; .git/ and .hpm/ are always
excluded. .hpmignore exists mostly to re-include build outputs that
.gitignore keeps out of the repository:
# .gitignore ignores resolver/ and *.hda; ship them anyway
!resolver/
!resolver/**
!otls/*.hda
One difference from git: the rule nearest to a file decides. A file or
directory matched by a ! rule is shipped even when an ancestor
directory is ignored, so !build/Release/*.dll ships those DLLs under an
ignored build/. Git would not re-include them. [stage].include cannot
re-include an ignored path; a ! rule is the only way.
Build profiles
Declared as [stage.profile.<name>] tables.
Build profiles are a second axis orthogonal to platform, for packages whose
native binaries can be built more than one way — typically an optimized
release (the default) and a symbol-bearing debug variant for attaching a
debugger to an HDK plugin.
hpm build --profile <name> always exposes the name to prepack scripts as
HPM_BUILD_PROFILE (see Prepack environment above). When a matching
[stage.profile.<name>] table is declared, its overrides layer onto the base
[stage] so the profile build is reproducible from the manifest:
[stage]
prepack = ["build-dso"]
[stage.profile.debug]
# Replaces the base prepack list when non-empty.
prepack = ["build-dso-debug"]
# Per-platform place rules here are appended to the base platform rules —
# e.g. ship Windows PDBs alongside the DSO only in the debug profile.
[stage.profile.debug.platform.windows-x86_64]
place = [{ from = "build/Debug/*.pdb", to = "dso/windows-x86_64/" }]
Merge semantics (base [stage] + selected profile):
prepack— the profile’s list replaces the base when non-empty; otherwise the baseprepackruns.include/exclude— profile entries are appended to the base globs.platform.<plat>.place— profile place rules are appended to the matching base platform entry (a new platform key is created if absent). Each[stage.profile.<name>.platform.<plat>]key must appear in[compat].platforms, same as the base[stage.platform.<plat>]tables.
The default profile is release; you only need a [stage.profile.release]
table if you want to customize the default. A --profile <name> that names no
declared table is allowed — the env var is still set — but hpm build prints a
warning so a typo is visible. hpm pack is unaffected by --profile; profile
selection is a build-time concern only.
[[registries]]
Per-project registries. Same shape as the global version in ~/.hpm/config.toml:
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"
[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"
Project registries are additive to global registries.
[scripts]
Named scripts for the package. Run them with hpm run <name> [args...],
which sets HPM_PACKAGE_ROOT to the manifest directory and forwards
trailing arguments to the script.
[scripts]
build = "python scripts/build.py"
test = "python -m pytest tests/"
Display metadata (label and description)
The table form accepts two optional, purely informational fields for tools that present scripts to people (menus, buttons, tooltips):
[scripts.launch]
cmd = "python -m mytool.ui"
label = "Launch My Tool"
description = "Open the main UI"
label is a human-readable display name and description is a one-line
summary. HPM itself never acts on either — hpm run ignores them, and
hpm check only echoes them back so you can confirm they parsed. They are
consumer-agnostic metadata: any frontend that surfaces a package’s scripts
may use them (falling back to the entry key when label is absent), but
nothing in HPM treats a labelled script as special. Both are omitted from
round-tripped manifests when unset.
Applications (app and icon)
Two more optional fields describe a script that opens a program the user works in, such as an editor or a review tool, rather than a task that runs to completion:
[scripts.editor]
cmd = "python -m mytool.editor"
label = "Editor"
description = "Open the editor on this project"
app = true
icon = "resources/editor.png"
app = true marks the script as an application, which a frontend may offer
as a launch target of its own rather than one entry in a list of scripts.
icon is a path, relative to the package root, of a PNG or SVG image that
represents the script; ship the file in the archive (see [stage]).
Like label, both are consumer-agnostic: hpm run runs an app like any
other script, and HPM never reads the icon. hpm check reports which scripts
are apps and warns when icon names a path that is not a file in the
package. Both are omitted from round-tripped manifests when unset.
An older HPM refuses a manifest that uses either field (unknown fields are errors), and so refuses to install a package version that declares one. Add them only once the HPM versions that install your package understand them.
Per-host variation
Scripts whose command differs per OS use a conditional cmd value — the
same when-grammar [runtime] uses, restricted to the os axis:
[scripts]
build = "cargo build" # runs on any host
[scripts.register]
cmd = [
{ when = { os = "windows" }, set = "\"%HPM_PACKAGE_ROOT%\\plugin\\bin\\tool.exe\" register" },
{ when = { os = "macos" }, set = "\"$HPM_PACKAGE_ROOT/plugin/bin/tool\" register" },
{ when = { os = "linux" }, set = "\"$HPM_PACKAGE_ROOT/plugin/bin/tool\" register" },
]
The command runs through the host’s shell, so each variant uses that
shell’s spelling for variables: $HPM_PACKAGE_ROOT for sh,
%HPM_PACKAGE_ROOT% for cmd.exe.
hpm run picks the first variant whose when.os matches the host. Add an
empty when = {} branch as a last entry to declare a fallback that
matches any host the explicit branches missed. A script with no matching
variant on the current host is treated as absent — hpm run errors with a
message that the script only matches other platforms.
Only the os axis is meaningful for scripts: HPM has no Houdini-version
or Python context at hpm run time, and install_source is irrelevant
because scripts run against the dev’s workspace, not an install. Setting
any non-os axis in a script when is rejected at manifest validation
time.
Per-script Python environments
A script that needs a pinned Python interpreter or extra packages can opt into a uv-managed virtual environment by switching from the shorthand string to the table form:
[scripts.setup]
cmd = "python scripts/setup.py"
python = "3.11"
requirements = ["PySide6>=6.6"]
hpm run setup then resolves requirements through the same uv
pipeline that backs [python_dependencies], materialises a venv at
~/.hpm/venvs/<hash>/, prepends its bin/ (or Scripts/ on Windows) to
PATH, and sets VIRTUAL_ENV so python in the command resolves to the
pinned interpreter. Two scripts whose python + requirements resolve
to the same closure share one venv on disk. Plain-string entries keep
their prior behaviour and execute against whatever python is on PATH.
Conditional cmd + venv hints compose:
[scripts.regen]
cmd = [
{ when = { os = "windows" }, set = "python scripts\\regen.py" },
{ when = {}, set = "python scripts/regen.py" },
]
python = "3.11"
requirements = ["pyyaml"]
Both python and requirements are optional in the table form; omitting
both yields a regular script with no venv overhead.
Running inside the package environment
A per-script venv is intentionally minimal — it installs only the script’s
own requirements and does not expose the package’s
[python_dependencies] or make the package’s python/ modules importable.
That’s right for self-contained tooling, but the wrong shape for code that
ships in the package and needs to import it (a render-farm task, a CLI the
package exposes).
Set package-env = true to run the script inside the package’s full
resolved environment instead:
[scripts.farm]
cmd = "python -m rock_tools.farm"
package-env = true
hpm run farm then builds the same environment hpm install materialises
for Houdini, but for this out-of-Houdini process:
- a merged uv venv resolved from
[python_dependencies]across the project and its installed hpm dependencies (so a dependency’s Python packages are present too); - every involved package’s
python/directory onPYTHONPATH— the running package first, then each dependency, then the venv’ssite-packages; - the interpreter pinned to the project’s Houdini-mapped CPython (a
per-script
pythonhere is ignored); anyrequirementson the entry are layered on top of the package environment.
This is read-only: the dependency set comes from the existing hpm.lock
plus the global package store, so it never fetches packages or rewrites
generated Houdini manifests. Because the venv is content-addressable, when
hpm install already built it the run reuses it without re-resolving.
Run hpm install first so the project is locked and its dependencies are
present; otherwise hpm run errors and points you there. Consumers like the
Deadline render-farm plugin can then delegate the whole venv/deps/PYTHONPATH
dance to hpm run <script> instead of reproducing it.
The table form also accepts plain inline-table syntax:
[scripts]
setup = { cmd = "python scripts/setup.py", python = "3.11", requirements = ["PySide6>=6.6"] }
[[operators]]
Declares the operators (node types) the package bundles, so hpm pack can
emit a searchable asset index that lets a registry offer node-level search
(e.g. “find the package that ships an rbd_configure SOP”) without ever
downloading or opening the archive.
[[operators]]
kind = "hda" # "hda" or "dso"
type_name = "studio::rbd_configure::2.0"
label = "RBD Configure"
category = "Sop"
tab_submenu = "Studio/Dynamics"
icon = "SOP_rbd"
source = "otls/rbd.hda"
[[operators]]
kind = "dso"
type_name = "studio::fast_scatter"
label = "Fast Scatter"
category = "Sop"
source = "dso/scatter.so"
| Field | Required | Description |
|---|---|---|
kind | yes | hda (defined by an HDA/OTL digital asset) or dso (registered by a compiled plugin shipped as a DSO, i.e. authored against the HDK). |
type_name | yes | Namespaced operator type name, e.g. studio::rbd_configure::2.0. hpm derives namespace and op_version from it where it can. |
category | yes | Operator table / network category: Sop, Object, Dop, Lop, Top, Vop, Rop, Driver, … |
label | no | TAB-menu display name. |
tab_submenu | no | TAB submenu path, e.g. Studio/Dynamics. |
icon | no | Icon identifier, e.g. SOP_rbd. |
source | no | Where the operator’s file lives in the produced package (after [stage] placement) — either a single archive-relative path or a per-platform table (see below). When set, hpm pack checks it against the produced archive. |
Per-platform source (multi-platform DSOs)
A single HDA ships at the same path in every archive, so one source string
works. But a compiled operator’s binary differs per platform
(.so / .dll / .dylib, often under dso/<platform>/), so its source is a
table keyed by platform — mirroring [stage.platform.*]. The keys must appear
in [compat].platforms:
[[operators]]
kind = "dso"
type_name = "studio::fast_scatter"
label = "Fast Scatter"
category = "Sop"
source = { linux-x86_64 = "dso/linux-x86_64/scatter.so", macos-aarch64 = "dso/macos-aarch64/scatter.dylib", windows-x86_64 = "dso/windows-x86_64/scatter.dll" }
Each per-platform hpm pack resolves source to the entry for the platform it
targets and emits that concrete path. An operator whose table does not list
the platform being packed is omitted from that platform’s index — its file
isn’t in that package. (Omit source entirely to index an operator by
name/category with no path and no check.)
Verifying sources at pack time
By default hpm pack warns when a declared source is missing from the
produced archive. Pass --verify-assets to make it a hard error instead (and
delete the invalid archive) — recommended in CI so a package never publishes an
index advertising a file it doesn’t ship. The check runs against the built
archive, so build compiled artifacts before packing.
Why declarations rather than reading the files? The HDA container format is
officially undocumented and can change between Houdini versions, and a
compiled HDK plugin (DSO) does not expose its operator names offline at all —
they are C++ constructor arguments that only materialise inside Houdini. A
declaration in hpm.toml is stable, version-proof, and a single source of
truth. The author already knows exactly what they ship.
Platform and Houdini-version filtering come for free from elsewhere in the
manifest: a DSO’s architecture is implied by the per-platform archive it ships
in ([compat].platforms + [stage]), and the supported Houdini range is
[compat].houdini. See hpm pack for the emitted index shape.
Configuration
hpm’s own settings live in config.toml. This is separate from
hpm.toml, which describes a package or project. Most users
need only two parts of it: [[registries]], which hpm registry add writes
for you, and [projects], which tells hpm clean what is still in use.
HPM reads ~/.hpm/config.toml if it exists, then <cwd>/.hpm/config.toml
(project override) if it exists. Layering is presence-aware: each file
overrides exactly the values it sets, so a project config that omits a
section (or a single key) leaves the user-level value in place, and
anything no file sets falls back to the built-in default. Setting only
storage.home_dir re-derives the cache/packages/registry directories
under it unless they are set explicitly. A malformed config file is a
hard error, not a silent fallback to defaults.
A project config may set only [install]. A project directory is often a
repository someone else wrote, so [storage], [projects], [signing] and
[[registries]] (where hpm keeps its store and tools, what hpm clean
treats as live, which key hpm pack signs with, and which servers an
embedder’s sign-in token may be sent to) are read only from
~/.hpm/config.toml; in a project config they are ignored with a warning
naming the section. A project declares the registries it resolves from in
hpm.toml’s [[registries]].
[install]
parallel_downloads = 8 # packages a sync fetches and installs at once
[storage]
home_dir = "/Users/me/.hpm" # default: $HOME/.hpm
cache_dir = "/Users/me/.hpm/cache"
packages_dir = "/Users/me/.hpm/packages"
registry_cache_dir = "/Users/me/.hpm/registry"
[projects]
explicit_paths = [
"/Users/me/studio/pipeline",
]
search_roots = [
"/Users/me/houdini-projects",
]
max_search_depth = 3
ignore_patterns = [".git", ".hg", ".svn", "node_modules", "backup", "archive", ".cache", "temp", "tmp"]
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"
[signing]
key_path = "/Users/me/.hpm/signing.pem" # fallback for `hpm pack`
What each section controls
[install]
parallel_downloads— the most registry or URL packages a sync fetches and installs at once (default 8; must be at least 1).path— written by older hpm versions but never used (projects always install into<project>/.hpm/packages). It is still accepted, with a warning, so an existing config keeps loading; remove it.
Any other key in a config file is an error that names it.
[storage]
home_dir— HPM’s root on disk. Default$HOME/.hpmon every platform (Linux, macOS, Windows). All other storage paths derive from this by default.cache_dir,packages_dir,registry_cache_dir— override individual subdirectories without moving the whole root.
[projects] — drives hpm clean’s orphan detection.
explicit_paths— absolute project paths that are always considered active.search_roots— directories scanned recursively for active projects.max_search_depth— recursion limit for search_roots (default3).ignore_patterns— directory names to skip during scanning. Each matches a whole directory name exactly (not a prefix or a glob):tempskipstemp/but nottemporal-fx/.
[[registries]] — list of registries. Same shape as
[[registries]] in hpm.toml.
[signing]
key_path— fallback Ed25519 PKCS#8 PEM path forhpm packwhen neither--keynorHPM_SIGNING_KEYis set.
The hpm.lock lock file
hpm install writes hpm.lock beside hpm.toml. It records what was
installed, so that the next install, on any machine, gets the same package
bytes or fails. Commit it. Do not edit it by hand.
# HPM Lock File
# This file is auto-generated. Do not edit manually.
[package]
name = "shot-010"
version = "0.1.0"
[dependencies."acme/rock-tools"]
version = "0.1.0"
checksum = "v2:ce3d0027c2544dc52a41ed3715101bfda903b837f724b7438fc812b13351db3d"
[dependencies."acme/rock-tools".source]
type = "url"
url = "https://packages.studio.example/rock-tools-0.1.0.zip"
version = "0.1.0"
[dependencies."local/my-tools"]
version = "0.3.0"
[dependencies."local/my-tools".source]
type = "path"
path = "../my-tools"
[python_dependencies.numpy]
version = ">=1.26,<3"
[metadata]
generated_at = "2026-11-16T10:59:29Z"
hpm_version = "0.40.2"
platform = "linux-x86_64"
What is pinned
| Entry | Pinned to | Checked on install |
|---|---|---|
| Registry and URL dependencies | The version, the download URL, and a checksum of the installed files. | Yes. A package the lock pins at the manifest’s version must match its checksum, whether it is freshly downloaded or reused from the store. |
| Path dependencies | The version and the source path. No checksum: the source is expected to change. | No. |
| Python dependencies | Not pinned. The lock repeats the constraint from hpm.toml; uv resolves it again on every install. | No. |
So hpm.lock makes Houdini packages reproducible, and Python packages only
as reproducible as their constraints. Where you need the same Python
package version every time, pin it with == in [python_dependencies].
The checksum
checksum is a SHA-256 over the installed tree: every file’s relative path
and contents, each framed by its length, written v2:<hex>. It is taken
after extraction, so it does not equal the SHA-256 of the archive that
hpm pack prints or a registry serves as cksum. Lock files written by
older versions hold a bare <hex> digest; those are still verified.
A lock entry whose version differs from the manifest’s is stale and pins nothing; the install replaces it.
Required packages
A package the project does not list, installed because a listed package
requires it, gets an entry like any other. The next install keeps that
version, verified against its checksum, while it still satisfies every
requirement on it. When it no longer does (a listed package moved to a
version that needs a newer one), the install chooses it again and the lock
changes. hpm update chooses all of them again, the newest version that
fits. An entry for a package nothing requires any more is dropped.
--frozen-lockfile
hpm install --frozen-lockfile fails instead of writing the lock when:
hpm.lockdoes not exist;- the installed versions, or the Python constraints, differ from what the lock records;
- a registry or URL package, listed or required, has no checksum in the lock;
- a required package’s locked version no longer satisfies the packages that require it.
Use it in CI and on render nodes, where a lock that needs to change means someone forgot to commit it.
Age
metadata.generated_at is when the lock was written. hpm install and
hpm audit warn when it is more than 90 days old, as a prompt to run
hpm update. The warning never blocks an install.
Registries are not recorded
The lock stores the URL a package was downloaded from, not the registry
that supplied it. To keep a dependency coming from one registry, pin it in
the manifest with registry = "<name>".
Files and directories
Every path hpm reads or writes. Other pages link here rather than repeat the layout.
The hpm home: ~/.hpm/
The same location on Linux, macOS and Windows (%USERPROFILE%\.hpm). Move
it with [storage] home_dir.
~/.hpm/
├── config.toml # your configuration (optional)
├── packages/ # the store: installed packages
│ ├── utility-nodes@1.0.0/ # one directory per slug@version
│ ├── utility-nodes@1.0.0.files.json # install record, read by `hpm audit`
│ ├── utility-nodes@1.0.0.exec-modes # marker for the executable-bit repair
│ └── _dev/ # path dependencies
│ └── my-tools@0.1.0/ # a link, or a folder of copies named by content hash
├── venvs/ # Python environments, shared between projects
│ └── a1b2c3d4e5f60718/ # named by a hash of the resolved package set
├── global/ # what `hpm global` installed
│ └── houdini-21.0.json # one ledger per Houdini version
├── registry/ # clones of Git registry indexes
│ └── <digest of the URL>/
├── cache/ # downloaded archives
├── fetch/ # archives being extracted
├── tools/
│ └── uv-<version>/ # the uv hpm downloads on first use
├── uv-cache/ # uv's cache, separate from any uv of your own
├── uv-config/
└── uv-python/ # CPython builds uv downloads for the venvs
| Path | Safe to delete? |
|---|---|
config.toml | No. It holds your registries and settings. |
global/ | No. Without the ledger, hpm no longer knows which files it wrote into Houdini’s preferences. Use hpm global remove. |
packages/ | Yes, with hpm clean. By hand it works too; the next hpm install downloads again. |
venvs/, cache/, fetch/, registry/, tools/, uv-cache/, uv-python/ | Yes. All are rebuilt or downloaded again when needed. |
The store is keyed by the package’s slug, without the creator:
acme/tools and other/tools at the same version would use the same
directory. hpm refuses to store a download whose own hpm.toml declares a
different package than the one requested, so one cannot be served as the
other, but two such packages cannot be installed side by side.
A project
<project>/
├── hpm.toml # the manifest. Commit.
├── hpm.lock # installed versions and checksums. Commit.
└── .hpm/ # generated. Do not commit.
├── config.toml # optional; may set [install] only
└── packages/ # the directory Houdini is pointed at
├── acme.utility-nodes.json # one package file per dependency
└── ~hpm-project-overrides.json # the project's own [runtime] entries
.hpm/packages/ belongs to hpm: an install removes any .json file there
that it does not recognise. hpm refuses to work in a project whose .hpm or
.hpm/packages is a symlink or junction.
A package being developed
<package>/
├── hpm.toml
├── .hpmignore # optional; see [stage] in the manifest reference
├── dist/ # `hpm build` output ([stage].output_dir)
└── <slug>-<version>[-<platform>].zip # `hpm pack` output (or --output <dir>)
Houdini’s preferences
hpm global writes one file per package into the per-user, per-version
packages directory, and nothing else there:
| Platform | Directory |
|---|---|
| Linux | ~/houdiniX.Y/packages/ |
| macOS | ~/Library/Preferences/houdini/X.Y/packages/ |
| Windows | %USERPROFILE%\Documents\houdiniX.Y\packages\ |
The file is named hpm-{creator}.{slug}.json. HOUDINI_USER_PREF_DIR
overrides the location, as it does for Houdini.
Environment variables
Read by hpm
| Variable | Used by | Meaning |
|---|---|---|
HPM_SIGNING_KEY | hpm pack | Ed25519 signing key. A value starting with -----BEGIN is the PEM itself; anything else is a path to it. --key overrides it. |
HPM_HOUDINI_MAJORS | hpm build | Passed through to prepack scripts when --houdini-majors is not given. |
HOUDINI_USER_PREF_DIR | hpm global | Overrides Houdini’s preferences directory, with __HVER__ expanded to the X.Y version, as Houdini does. |
RUST_LOG | every command | Log filter, for example RUST_LOG=debug or RUST_LOG=hpm_core::python=trace. Replaces the level -v selects. |
HOME (USERPROFILE on Windows) | every command | Where ~/.hpm is. |
hpm has no variable for the location of its home or for credentials. Move
the home with [storage] home_dir.
Set by hpm for scripts
hpm run, and the [stage].prepack scripts hpm build runs, start each
script with:
| Variable | Set when | Value |
|---|---|---|
HPM_PACKAGE_ROOT | always | The directory holding hpm.toml. Also the script’s working directory. |
VIRTUAL_ENV, and the venv’s bin/ (or Scripts\) first on PATH | the script declares python or requirements, or package-env = true | The script’s venv. |
PYTHONPATH | package-env = true | The package’s python/, each dependency’s python/, then the venv’s site-packages. |
HPM_BUILD_PROFILE | prepack scripts only | The --profile name; release by default. |
HPM_PLATFORM | prepack scripts only, when [compat].platforms is declared | The target platform, for example macos-aarch64. |
HPM_HOUDINI_MAJORS | prepack scripts only, when given | The --houdini-majors value, or the inherited variable. Space-separated majors, for example 21 22. |
Usable in hpm.toml
$HPM_PACKAGE_ROOT in a [runtime] value is
replaced with the installed package’s directory when the Houdini package
file is written. Any other $VAR is left for Houdini to expand at startup.
Set for Houdini
hpm sets nothing in your shell. What Houdini sees comes from the package
files hpm generates: HOUDINI_PATH (through hpath), PYTHONPATH,
HOUDINI_SCRIPT_PATH, and whatever the packages’ [runtime] sections
declare. The one variable you set yourself is HOUDINI_PACKAGE_PATH; see
How Houdini loads hpm packages.
For hpm’s own test suite
| Variable | Meaning |
|---|---|
HPM_REQUIRE_HOUDINI=1 | Fail the Houdini conformance tests instead of skipping them when no Houdini is installed. |
HFS | The Houdini installation those tests use. |
Registry formats
What a registry has to serve for hpm to resolve packages from it. Read this to host a registry of your own; to use one, see Registries, and for a walkthrough see Run a studio registry.
A registry holds metadata only. Archives live wherever their dl URL
points: a release page, an object store, a file server.
The entry
Both registry types describe a published archive with the same JSON object:
{
"name": "acme/rock-tools",
"vers": "1.2.0",
"dl": "https://packages.studio.example/rock-tools-1.2.0.zip",
"cksum": "sha256:40c67f243a852eff6b08ebf52bd15757115db71e0a509fad67bade62ce3c436f",
"houdini_compat": ">=21, <23",
"platform": "linux-x86_64",
"description": "Rock scattering tools",
"deps": [{ "name": "acme/core", "req": ">=1.0, <2" }]
}
| Field | Required | Meaning |
|---|---|---|
name | yes | The package path, creator/slug. |
vers | yes | A semantic version. |
dl | yes | Download URL of the archive (.zip or .tar.gz). https, or http to the local machine only. |
cksum | no | SHA-256 of the archive bytes, as sha256:<hex> or bare hex. This is the sha256 that hpm pack --json prints. Without it the package installs with a warning and no download check. |
houdini_compat | no | The package’s [compat].houdini range. Shown by hpm search, and used by clients that choose versions. |
platform | no | The platform this archive is built for: one of the platform identifiers, or universal. Absent means universal. |
yanked | no | true withdraws the version: ranges skip it, an exact request still gets it. |
deps | no | The version’s registry dependencies, as { name, req }. Read by clients that solve a whole project; hpm install ignores it. |
description, author, created_at | no | Shown in search results. |
sig, kid | no | Ed25519 signature and key id from hpm pack --key. Stored but not checked by hpm; see Security. |
One entry is one archive. A version built for three platforms is three
entries that differ in dl, cksum and platform. On install hpm takes
the entry for the host platform, else a universal one, else fails.
The archive itself must contain an hpm.toml declaring the same name and
vers; hpm refuses one that declares another package. hpm pack output
always qualifies.
Git registry
A Git repository laid out like this:
index/
├── config.json # must exist; `{}` is enough
└── acme/ # one directory per creator
├── rock-tools.json # one file per package
└── core.json
Each package file holds one entry per line (JSON Lines), one line per published archive:
{"name":"acme/rock-tools","vers":"1.1.0","dl":"https://.../rock-tools-1.1.0.zip","cksum":"sha256:..."}
{"name":"acme/rock-tools","vers":"1.2.0","dl":"https://.../rock-tools-1.2.0.zip","cksum":"sha256:..."}
Publishing a version is appending a line and pushing. Withdrawing one is
adding "yanked":true to its line.
hpm clones the repository to ~/.hpm/registry/ on first use and reads the
clone afterwards. It fetches again only on hpm registry update.
The registry URL may be https://, ssh://, file://, git@host:path, or
a local or network path. git:// and http:// are refused. Access control
is Git’s: whoever can clone the repository can resolve from it.
API registry
An HTTPS service with three read-only endpoints under a base URL, which is
what hpm registry add takes:
| Request | Response |
|---|---|
GET {base}/packages?q={query} | { "packages": [entry, ...], "total": n } with the latest version of each match |
GET {base}/packages/{creator}/{slug} | { "versions": [entry, ...] } with every archive of every version |
GET {base}/packages/{creator}/{slug}/{version} | { "builds": [entry, ...] } with every archive of that version |
An unknown package or version is a 404. A response may be at most 64 MiB.
API registries are queried live on every resolution; nothing is cached, and
hpm registry update has nothing to do for them.
The hpm command line sends no credentials, so it can resolve public
packages only. Applications that embed hpm can
attach a bearer token; it is sent only to https registries configured for
the user, never to one a project declares.
Limits
These apply to anything hpm downloads, from either registry type or from a URL dependency:
- Zip entries must be stored or deflated. Other compression methods (bzip2, LZMA, zstd, …) and encrypted entries fail to extract.
- An archive may expand to at most 1,000,000 entries and 256 GiB.
- Entry names with an absolute path, a
..component, a backslash or a colon are refused. Symlink entries are skipped. - A connection must open within 30 seconds, and a download that sends nothing for 2 minutes fails.
Troubleshooting
Start with more output. -v shows progress, -vv shows more, and
RUST_LOG selects modules:
hpm -v install
RUST_LOG=debug hpm install
RUST_LOG=hpm_core=debug,hpm_core::python=trace hpm install
Installing
No package registries are configured
error: Package error: Failed to sync project dependencies: Cannot install foo 1.2.3:
no package registries are configured. Run 'hpm registry add <url>' to add one.
Add one, with your registry’s URL:
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git
Version not found in registry
error: Package error: Failed to sync project dependencies: Failed to resolve
acme/tools 1.2.3 from registry: Version '1.2.3' of package 'acme/tools' not found in registry
The package or the version is not in any configured registry. Check, in order:
- The name is the full
creator/slug, not the bare slug. - The version exists:
hpm search <slug>. - For a Git registry, the local index is current:
hpm registry update. - The version in
hpm.tomlis the one you meant. An exact version is looked up as written;hpm update <package>chooses the newest and writes it for you.
A package’s own dependency is missing in Houdini
hpm install adds the packages your packages require, from the
dependencies each version was published with. If one is still missing:
- The version was published without it. Check its
depsin the registry, or the[dependencies]in itshpm.toml; apathorurldependency there is not followed. Add the package to the project withhpm add. - The project was installed with an hpm older than 0.45.0, which installed
only the listed packages. Run
hpm installagain.
The project’s packages cannot be installed together
The project's packages cannot be installed together: no version of acme/core works with the other packages: ...
Two packages need versions of a third that no single version satisfies, or
the project pins a version another package rules out. The message names the
versions and the requirement each one failed. Change the pin it names, or
move the package that holds it back with hpm update.
Checksum mismatch
Checksum mismatch for acme/tools: expected v2:ab12..., got v2:cd34...
The package’s files do not match the checksum hpm.lock recorded. Either
the copy in the store was changed after it was installed, or the registry
now serves different bytes for that version.
For a changed store copy, move it aside and install again:
mv ~/.hpm/packages/tools@1.2.3 ~/.hpm/packages/tools@1.2.3.files.json /tmp/
hpm install
If a fresh download still mismatches, the published archive changed. Do not
delete hpm.lock to make the error go away until you know why; that is the
situation the lock exists to catch.
hpm.lock exists but cannot be read
Install stops rather than overwrite a lock it could not verify against. Fix the file (a merge conflict marker is the usual cause), or delete it to resolve and lock again.
--frozen-lockfile fails in CI
The lock is missing, does not match the manifest, or lacks a checksum for a
registry or URL dependency. Run hpm install locally, commit hpm.lock,
and retry.
No Python version mapping for Houdini
No Python version mapping for Houdini 23; supported versions are 20.5+, 21, 22.
Houdini 19.x (Python 3.7) and 20.0-20.4 (Python 3.9) are past EOL.
The lower bound of the project’s [compat].houdini names a Houdini hpm has
no Python for. Set the range to a supported lower bound. hpm refuses rather
than guess, because a venv built for the wrong Python installs cleanly and
then fails on import inside Houdini.
uv fails while resolving Python dependencies
Couldn't parse requirementorExpected one of ... found ^. A version in[python_dependencies]is not a PEP 440 specifier. Use~=or>=..,<..instead of^, and==1.2.3instead of a bare1.2.3. See[python_dependencies].- A package name with a version glued on was “not found” (for example
numpy1-26-4). Same cause: a bare version. Write==1.26.4. Conflicting versions for package numpy: >=1.20 vs >=1.21. Two installed packages declare the same Python package with differently spelled constraints. They must be identical; change one package, or pin the package versions whose constraints agree.No interpreter found. The managed CPython download was interrupted. Run the install again with a network connection.- Disk space. A venv is tens to hundreds of MB, and each managed CPython about 50 MB.
In Houdini
The package does not appear at all
Check that Houdini was started with HOUDINI_PACKAGE_PATH containing
<project>/.hpm/packages, and restart Houdini after any install. To see
what Houdini resolved without opening a session:
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" HOUDINI_PACKAGE_VERBOSE=1 hconfig
If the package is listed but disabled, the running Houdini is outside the
package’s [compat].houdini range.
Python packages are not importable
- Open
.hpm/packages/{creator}.{slug}.jsonfor the package that declares the dependency. It should have aPYTHONPATHentry pointing into~/.hpm/venvs/. - Check that directory exists. If it does not, run
hpm installagain; venvs are a cache and are rebuilt on demand. - A dependency declared only in the project’s own
[python_dependencies]is not installed for Houdini. Declare it in the package that imports it.
An HDK plugin’s operators do not register
The package loads, its HDAs and shelves appear, and its nodes are missing,
with no error. HOUDINI_DSO_PATH points at a directory that does not exist
in the installed package, typically a build directory. See
HDK plugins: where a dev install finds its DSOs.
A hand-installed archive registers but nothing loads
Symptom: Houdini’s package log lists the package, reports Disabled Packages (0), and logs no warning, but no HDAs, DSOs, or toolbars appear.
Almost always the package file and the {slug}/ content folder are not in
the same directory. $HOUDINI_PACKAGE_PATH means the directory holding the
package file, so $HOUDINI_PACKAGE_PATH/{slug}/... resolves relative to
wherever the json ended up. Moving the {slug}/ folder in beside the json
fixes it.
A milder symptom, where HDAs and toolbars appear while native plugins do not, means the package file Houdini is reading is not the one the archive shipped. See Installing an archive without HPM.
Cleaning up
hpm clean removes nothing
hpm clean only removes what no project uses, and it finds projects through
[projects] in ~/.hpm/config.toml. With no projects found it removes
nothing at all. See Keep disk usage down.
Starting over
Everything under ~/.hpm/ except config.toml and global/ can be
rebuilt. To reset one project:
rm -rf .hpm/
hpm install
Keep hpm.lock: it is what makes the reinstall identical.
To reset everything, remove ~/.hpm/packages, ~/.hpm/venvs,
~/.hpm/cache and ~/.hpm/fetch, then run hpm install in each project.
Removing ~/.hpm/global/ as well orphans the package files hpm global
wrote into Houdini’s preferences; run hpm global remove first.
Getting help
hpm --helpandhpm <command> --help.- Report bugs at https://github.com/3db-dk/hpm/issues.
Upgrade notes
Changes that can make a working setup stop working after an hpm upgrade, newest first. The changelog has every change; this page has only the ones that need action.
Use 0.40.1 or newer. 0.40.0 is a security release that closed several ways a cloned project, a registry or an archive could write outside hpm’s directories or run commands; 0.40.1 fixes a Windows regression in it.
0.40
- Plain
httpis refused for API registries, download URLs and URL dependencies, except to the local machine. Serve them overhttps. - Git registry URLs must be
https://,ssh://,file://,git@host:pathor a local path.git://andhttp://are refused. Indexes are cloned again, into~/.hpm/registry/<digest>/; the old~/.hpm/registry/<name>/directories can be deleted. - A project’s
.hpm/config.tomlmay set only[install].[storage],[projects],[signing]and[[registries]]there are ignored with a warning. Put them in~/.hpm/config.toml, and declare a project’s registries in itshpm.toml. hpm installstops on an unreadablehpm.lockinstead of replacing it. Fix or delete the file.--frozen-lockfilerequires a checksum in the lock for every registry and URL dependency. Runhpm installonce without the flag and commit the result.- A URL dependency must match its archive. The key and
versionmust equal thepathandversionin the archive’shpm.toml, andversionmust be a semantic version. [python_dependencies]entries are plain requirements. Direct URLs (name @ url), environment markers and characters outside version specifiers fail the manifest load.- Zip archives must use stored or deflated entries. Repack an archive made with another compression method.
[stage]place rules: atowith.., a leading/, a drive, a backslash or a colon fails the manifest load, and a staged file whose name contains a colon or backslash is refused.- Symlinks pointing outside the package no longer pack or dev-install. Replace the link with the file.
- A project whose
.hpmor.hpm/packagesis a symlink or junction no longer installs. Make it a real directory. - On Windows,
hpm runarguments may not contain", a line break, or a%NAME%reference to a set variable. - The first Python install after upgrading downloads a newer
uv.
0.39
hpm packnames the archive after the slug:{slug}-{version}[-{platform}].zip, not the display name. Read the path fromhpm pack --json.
0.38
- Unknown keys in a dependency table are errors.
registy = "..."oroptinal = trueused to be dropped silently. The rule applies to everyhpm.tomlhpm reads, including packages already in the store. - Exit codes changed.
hpm auditexits 1 on an integrity failure, andhpm registry updateexits 1 when a registry could not be refreshed. A flag value hpm does not accept is a usage error, exit 2. hpm --output json updateneeds--dry-runor--yes.- Global flags
-v,-q,--colorand-Cwork on either side of the subcommand.--output <format>goes before it. hpm initno longer writes a rootpackage.json.
0.29
- Generated package files are named
{creator}.{slug}.json. The next install renames them; nothing to do unless a launcher referred to the old{slug}.jsonnames. registry = "<name>"on a dependency is authoritative. It no longer falls back to other registries.
0.28: old manifests no longer load
The manifest format used before 0.16 is rejected, as is any unknown section
or key. If hpm.toml fails with an unknown field named houdini, env,
dev or native, rewrite those sections:
| Old | New |
|---|---|
[houdini] with min_version = "20.5" | [compat] with houdini = ">=20.5" |
[env], and [dev.env] for the same key | One [runtime] entry. Where the two differed, give value one variant per install_source (see conditional values). |
[native] with platforms = [...] and [native.<platform>] files = [...] | [compat] platforms = [...] and [stage.platform.<platform>] place = [{ from, to }] |
Other changes in 0.28:
- The manifest flag is
-m/--manifeston every command;-p/--packageis gone. - A Git registry must use the
creator/sluglayout, and platform tags must be the full identifiers (linux-x86_64, notLINUX).
Houdini versions
Houdini 19.x and 20.0 to 20.4 are not supported: their Python versions are past end of life, and hpm refuses to build an environment for them.
Changelog
All notable changes to HPM (Houdini Package Manager) will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.46.0] - 2026-11-24
Added
ProjectManager::project_root()returns the project directory a manager was built for, so an embedder no longer has to carry it alongside.
[0.45.2] - 2026-11-24
Fixed
- On Windows, the cleanup that runs after a sync could move a dev copy aside while a project still pointed at it, so Houdini found the package’s files missing until the next sync put the copy back. The cleanup now decides again, with a fresh look at who uses the copy, right before moving it, and on Windows it reads a usage record or Houdini package file that appears missing again before treating the claim as gone.
[0.45.1] - 2026-11-24
Fixed
- A sync installed required packages that an application embedding hpm
had deliberately left out of the project (switched off by the user, or
not available to the account), loaded them into Houdini, and looked them
up in a registry, which failed an offline launch that worked before
0.45.0.
SyncOptionsgainsexcluded: the sync neither installs nor requires those packages unless the manifest lists them.registry::closure::select_closedno longer chooses an excluded package offered as supplied, andselect_keepingtakes the sameexcluded.SyncOptionsis no longerCopy; build it with..SyncOptions::default().
[0.45.0] - 2026-11-24
Changed
hpm installnow installs the packages a project’s packages require, not only the ones it lists. A package whose version requires another (a rig that needs a shared toolkit) used to load without it unless the project listed both. Install now chooses every required package at the newest version that fits all requirements and the project’s[compat].houdini, writes its Houdini package file, and records it inhpm.lock. A path or URL dependency brings what its ownhpm.tomlrequires. When the requirements cannot all be met, install stops before downloading anything from a registry and names the packages that disagree.- A required package keeps the version
hpm.lockrecorded while it still fits.hpm updatechooses them all again, the newest that fits, and does so even when every listed dependency is current.--frozen-lockfilerequires every required package locked with a checksum, and fails rather than choose a version the lock does not record. - A registry dependency written as a range is installed at the newest version in it that fits, instead of failing with “version not found”.
hpm cleanalso keeps every package a project’shpm.lockrecords, at the locked version. A required package the lock kept at an older version would otherwise be deleted whenever a newer version that also fits was installed for another project.
Added
hpm_core::registry::closure: the loop that finds a project’s whole package set (select_closed, with aVersionSourcefor where versions come from, andselect_keepingfor keeping a lock’s versions while they fit), shared byhpm installand applications that embed hpm.ProjectManager::sync_dependencies_with(lock, SyncOptions), withSyncOptions { frozen, refresh }, andProjectError::Resolution.hpm_package::retry_transient, the brief retryatomic_writealready used for the Windows errors a scanner or indexer causes for a moment (access denied, sharing and lock violations), is now public.
Fixed
- A dev copy a project still used could be deleted on Windows. A reclaim moves a copy it judges unused aside to a hidden tombstone, asks again, and moves it back if it has been claimed since. A scanner opening the tombstone could refuse that move back for a moment, and the next reclaim deleted every tombstone it found. The move back now retries, and a tombstone whose copy is in use again, with its place still free, is put back instead of deleted.
- The second check matched a project’s
hpathto the copy by resolving the copy’s path, which fails while the copy is moved aside. So a claim spelled differently from the copy’s own path (an 8.3 short name,.., a link along the way) did not count. The match now resolves the container, which stays where it is, and compares hashes. A container path that cannot be resolved for any reason other than not existing keeps the copy. - On Windows, a git registry given the path
//(or//<name>) was pinned toC://..., which git reads as a URL with the transportC. Such a path is now refused as naming no directory.
[0.44.1] - 2026-11-23
Fixed
hpm_core::registry::solve::solveandsolve_withno longer depend on the order a version lists itsdepsin. When a set had more than one answer, the search took the first one in that order, and the same release reaches callers in different orders: a registry serves the publisher’s manifest order, a manifest read offline comes out sorted. So two applications solving the same project could select different versions. The requirements are now taken by name, then requirement; theSolveError::Conflictexplanation follows the same order. The order of the packages passed in still decides which gets its newest version first.
[0.44.0] - 2026-11-23
Added
- Optional
appandiconfields on table-form[scripts]entries.app = truemarks a script that opens a program the user works in, so a frontend that presents scripts can offer it as a launch target of its own;iconnames a package-relative PNG or SVG that represents it. Likelabelanddescription, they are metadata only:hpm runtreats an app like any other script and HPM never reads the icon.hpm checklists the apps and warns about aniconthat is not a file in the package. A manifest using either field cannot be read by an earlier HPM.
[0.43.1] - 2026-11-22
Fixed
- The Linux release binary runs on distributions older than the build machine. It was built on Ubuntu 24.04 and needed glibc 2.39, so it failed to start on Rocky or Alma Linux 8 and 9, Ubuntu 22.04 and Debian 12. It is now built on AlmaLinux 8 and needs at most glibc 2.28, as Houdini 22 does; the release refuses a binary that needs more.
urlupdated to 2.5.9 for RUSTSEC-2026-0592 (stack overflow inUrl::origin()on nestedblob:URLs).
[0.43.0] - 2026-11-20
Changed
hpm_core::registry::solve::SolveError::Conflictsays in data, not only in its text, why each version of the package it could not place was ruled out.Rejection::reason(a string) is replaced byRejection::causes, every requirement between that version and the selected versions that fails, each aCause:ExcludedBy(a selected package requires this one, and this version does not meet it),Requires(this version requires a selected package, and its selected version does not meet it) orUnavailable(this version requires a package with no usable version, with that package’s ownSolveError). Each names the package and version it means as aSelected, whoseOriginsays whether the project lists it (and whether it is pinned) or which chain of requirements pulled it in, andConflictgains the sameoriginfor the unplaced package. An application that embeds hpm can now tell a user which of their own packages to update or pin, instead of naming a package they never listed. The error’s text is unchanged.
Fixed
solve_withgiven raw build rows rather than the version view no longer treats each installable row of a version as a separate candidate. It searched such a version once per row and named it once per row in a conflict; it is now one candidate standing for the row install would pick (the host’s build, else a universal one). A pinned version’sSelectioncarries that row too, among the version’s live rows, where it carried the version’s first row even when that row was yanked. Solving raw rows and solving the version view now give the same result.
[0.42.0] - 2026-11-19
Fixed
hpm_core::registry::solve::solveandsolve_withno longer choose a version with no build for the host platform. Such a version still lists (a version picker shows it), so an unpinned or offered package could be given its newest version, which install then refused withNoCompatibleBuild, although an older version had a build for the host. The solver now applies install’s rule: a version is a candidate only when it has a build for the host or a universal one. A pinned version is kept as before and install names it. A package with no such version isSolveError::NoVersionForPlatform, a new variant, so a caller matchingSolveErrorexhaustively needs an arm for it.
Added
hpm_core::registry::solve::solve_for_hostsolves for a named platform rather than the one hpm runs on.hpm_core::registry::has_build_forsays whether install could use a registry entry on a given platform, the rule the solver applies, so a caller that ranks versions itself does not need its own copy.
[0.41.0] - 2026-11-18
Added
hpm_core::registry::solve::solve_withchooses versions for a set of packages together with the packages those versions require. The caller passes the packages it can offer; one is part of the answer only when a chosen version requires it, and it constrains nothing while it is not. A version whose requirements cannot be met, because the required package has no version that fits or rules the version out itself, is passed over for an older one. A caller that added required packages to the set and solved again could alternate between two answers without ever finishing.solveis unchanged.
Documentation
- The documentation is restructured. The single user guide is split into
getting-started pages (install, quickstart, concepts), eleven task guides,
and reference pages for the CLI,
hpm.toml, configuration, the lock file, on-disk files, environment variables and registry formats, with troubleshooting and upgrade notes on their own pages. Links touser-guide.htmlon hpm.readthedocs.io redirect to the quickstart. - Corrected where the docs disagreed with hpm: the store layout
(
~/.hpm/packages/<slug>@<version>/), thathpm installinstalls exact versions and does not install a dependency’s own dependencies, that[python_dependencies]take PEP 440 specifiers (no^, no bare version) and are not pinned byhpm.lock, the release file names, and the error messages quoted in troubleshooting. - The
[stage]examples in the manifest reference and the README excludedbuild/**while placing files frombuild/. An exclude wins over a place rule, so a package copied from them shipped without its plugin. The examples and the HDK guide now show a layout that works. - The documentation names no registry or product. Examples use one invented studio registry throughout, the one “Run a studio registry” sets up, and the publishing guide no longer points at a specific registry. Earlier entries in this changelog were reworded to match.
- A test (
crates/hpm-cli/tests/docs.rs) checks the docs against the code: both site indexes list every page, links and anchors resolve,tomlexamples load, and the flags in the CLI reference match the real ones.
[0.40.2] - 2026-11-14
Fixed
[stage]place rules:to = ""and atoending in/.now name a directory, so each file keeps its name under it. Before,to = ""put matched files at the image root itself (a nameless zip entry inhpm pack, a failed copy inhpm build) andlib/.became a file namedlib.- Two files placed at the same archive path now fail
hpm pack,hpm buildand dev installs with an error naming both files.hpm packused to stop on a duplicate zip entry, andhpm buildand dev copies silently kept whichever file came last.
[0.40.1] - 2026-11-13
Fixed
- Windows: installing an archive with files in subfolders failed with
“Archive contains path traversal attempt” (for example
otls/a.hda). The path check read zip entries as native Windows paths, whose\separators it refuses; it now reads each entry’s own/-separated name. 0.40.0 shipped no Windows binary because of this.
[0.40.0] - 2026-11-13
Security
-
A git registry’s url is checked before it reaches
git, and git runs with only the https, ssh and file transports, no credential prompt and none of the inherited variables that redirect it to another repository. A registry declared in a project’shpm.tomlcould otherwise makehpm installrun commands or clone into directories outside hpm’s cache. -
Git registry indexes are cached by a digest of their remote URL instead of their display name, so a project registry that reuses the name of one of yours can no longer seed or replace its index; a clone whose origin no longer matches is cloned again.
-
A project’s
.hpm/config.tomlcan no longer set[storage],[projects]or[signing]. A cloned repository could use them to move hpm’s home into its own tree, so thathpm installran a tool the repository shipped, to redirect where packages are stored, or to choose the keyhpm packsigns with. -
Archive extraction confines every entry to the install directory. A tar.gz package whose member named an absolute path (in the header, a GNU long-name record or a PAX
path) was written to that path at install time. Entries with a root, drive or..component, or a backslash, colon or NUL in a name, are now refused on every platform. -
A
[stage]place rule’stomust stay inside the install image. A path dependency’stowith..or an absolute path madehpm installwrite its file anywhere the user could write;hpm buildandhpm packhad the same flaw. -
Package names and versions from manifests, lockfiles and registries can no longer name paths outside the store, archive cache or fetch staging: every such path is built from a checked name (letters, digits,
.,_,-; at mostcreator/slug) and a semantic version. A registry entry that names a different package or version than was asked for, or carries a version that is not semver, is refused. -
A downloaded package must declare, in its own
hpm.toml, the package and version it was requested as. An archive claiming another package’s identity was stored in that package’s slot and served to every project on the machine that later asked for it. -
hpm installreproduceshpm.lock: every package the lock pins at the manifest’s version must match its locked checksum, whether freshly downloaded (checked before it reaches the store) or reused from the store. A registry or mirror that served different bytes for a locked version was installed, and the lock rewritten to match.ProjectManager::sync_dependenciesapplies the same check for embedders. -
A project with a committed
hpm.locknow installs on a machine whose store has never held its packages; it used to fail with “recorded in the lock file but is not installed”. -
Saves of lockfiles, config, Houdini package files and records stage to a temporary file created exclusively under a fresh name, so a link planted at
<file>.tmpin a cloned project no longer makes a save overwrite the link’s target. -
A project whose
.hpmor.hpm/packagesis a link is refused before hpm writes or deletes package files there; the stale-manifest sweep removes only regular files. -
An embedder’s bearer token is sent only to https API registries, and for a project’s registries only to the https origins of the registries configured for the user. A project that declared its own registry, or any plain-http registry, received the token.
-
hpm fetches registry answers and package archives only over https, or plain http to this machine (
localhost,127.0.0.0/8,::1); redirects follow the same rule and never step down from https to http. Plain http to another host let anyone on the path replace what was installed. -
A package’s
[python_dependencies]entry is one plain requirement: names and extras must be PEP 508 names and versions only version-specifier characters. A version holding a line break could add pip options such as--index-urlto the requirements file shared by every installed package, or a direct URL to build from. A-that does not follow a letter or digit is refused too, since>=1 --config-settings=...would pass a per-requirement option. -
The bundled uv moves from 0.5.9 to 0.13.6, past the advisories against 0.5.9 (wheel entry points and RECORD files writing or deleting outside the venv, archive-parsing differentials, a distrusted CA in uv’s bundled roots). The download is checked against a SHA-256 pinned in hpm for each platform before it is extracted, only a regular file is accepted as the binary, and it is installed under
tools/uv-<version>/, so a version bump replaces it; the unversionedtools/uvof older hpm is removed. -
Bounds on what a registry or package can make hpm consume: an archive may expand to at most 1,000,000 entries and 256 GiB, a registry answer may be at most 64 MiB, and connections must open within 30 s. Downloads no longer have a 5-minute cap on the whole transfer (large packages on slow links were cut off); a download that sends nothing for 2 minutes fails.
-
Extracted package files no longer take setuid, setgid or sticky bits, or group or world write permission, from the archive.
-
hpm packandhpm buildrefuse to package a PEM private key (however it got into the tree) and a link that points outside the package; such a link used to be packed as the file it pointed at. -
On Windows,
hpm run -- <args>refuses a forwarded argument holding a double quote or a line break: cmd.exe ends its quoting at either, so the rest of the argument could run as a second command. -
Text from registries and package manifests (search results, package descriptions, warnings and errors carrying them) is printed without control characters or Unicode bidirectional controls, so it cannot inject terminal escape sequences (hidden or recoloured output, hyperlinks, a changed window title).
-
Release binaries are published with a
.sha256file, and a binary already on a release is never replaced (a rerun with identical bytes is a no-op; different bytes need a new version tag). A tag that does not match the workspace version fails CI. -
Package archives are decoded only as Stored or Deflated zip entries (and tar.gz); the bzip2, deflate64, LZMA, PPMd, XZ, zstd and AES decoders are no longer built into hpm, removing their code (zstd’s in C) from what an untrusted archive can reach. Archives
hpm packwrites are unchanged.
Changed
- Upgrade note: a zip package archive whose entries use a compression method
other than Stored or Deflated now fails to extract; repack it with
hpm packor a standard zip tool. - Upgrade note: on Windows,
hpm runarguments may not contain", line breaks, or a%NAME%variable reference (cmd.exe would expand it before quoting);%04d-style frame patterns, a lone%,&,|,<,>and^still pass through inside quotes. - Upgrade note: a package containing a symlink to a file outside the package directory no longer packs or dev-installs; replace the link with the file.
- Upgrade note: the first Python install after upgrading downloads uv
0.13.6 into
~/.hpm/tools/uv-0.13.6/. - Upgrade note:
[python_dependencies]entries with direct URLs (name @ url), environment markers, or characters outside version specifiers now fail the manifest load. - Upgrade note: API registries, registry download URLs and URL dependencies on plain http to another host are refused; serve them over https.
ApiRegistry::with_auth_tokenrefuses a token for a registry that is not https.- Upgrade note: a project whose
.hpmor.hpm/packagesdirectory is a symlink or junction no longer syncs; make it a real directory. - Upgrade note:
hpm installstops whenhpm.lockexists but cannot be read, instead of warning and regenerating it; delete the file to resolve and lock again. - Upgrade note:
--frozen-lockfilefails when a registry or URL dependency has no lock entry with a checksum at the manifest’s version. ProjectManager::sync_dependenciesreads the project’shpm.lockand fails when it exists but cannot be read;sync_dependencies_with_locktakes the lock explicitly.- Upgrade note: a URL dependency whose key or
versiondiffers from the package path and version in the archive’shpm.tomlnow fails to install (a bare-slug key still matches the slug). - API:
StorageManager::install_into_castakes the requested name and version and refuses a package that declares a different identity. - Upgrade note: a URL dependency’s
versionmust be a semantic version. - API:
StorageManager::get_package_path,storage::layout::cas_dir,download_key, andStoreLayout::{cas_dir, dev_container, staging_dir}now return aResult; embedders add?. - Upgrade note: a
[stage]place rule whosetohas a..component, a leading/, a drive, a backslash or a colon now fails the manifest load. - Upgrade note:
hpm pack,hpm buildand dev copies of path dependencies refuse a staged file whose name contains a colon or a backslash (such a name means a drive, a stream or a separator on Windows, so the same package would install differently there); rename the file. - Upgrade note:
[storage],[projects],[signing]and[[registries]]in a project’s.hpm/config.tomlare now ignored with a warning; set them in~/.hpm/config.tomlinstead, or declare a project’s registries in itshpm.toml.[install]still applies from a project config. - Upgrade note: git registry urls starting with
-or naming a host that starts with-, using the<transport>::helper syntax, or thegit://orhttp://schemes are now rejected whenconfig.tomlorhpm.tomlis loaded, naming the registry. Usehttps://,ssh://,file://,git@host:pathor a local path. - Git registry indexes are now cloned under
~/.hpm/registry/<digest>/; each is cloned once more after upgrading, and the old~/.hpm/registry/<name>/directories can be deleted. hpm_config::Config::registry_cache_pathis removed: the cache directory is derived from the remote URL, not the registry name.- API:
GitRegistry::new(name, remote_url: &str, registry_cache_root: &Path)returns aResult(the URL is validated) and takes the root holding every git registry’s clone, appending a digest of the remote itself, instead of the registry’s own cache directory.
[0.39.1] - 2026-11-13
Fixed
- On Windows, a dev copy could be removed while a project still pointed at it, so Houdini lost the package until the next sync. The likeliest cause: another process (an antivirus scanner, a search indexer) briefly holding a just-written file made the write of the project’s claim on the copy fail, the sync only logged it, and the next cleanup saw a copy nobody claimed. Writes hpm stages and renames (lockfiles, config, Houdini package files, claims) now retry briefly when Windows refuses them that way; a claim that still cannot be written fails the sync instead of being logged; and a claim in the middle of being written always keeps its copy.
- 0.39.0 shipped no Windows binary: its Windows test run failed with this symptom (a project’s dev copy gone while the project used it). 0.39.1 is the first Windows build of 0.39; see 0.39.0 for what changed.
[0.39.0] - 2026-11-13
Fixed
- Project discovery no longer skips a project whose folder name merely
starts with an ignore pattern.
[projects] ignore_patternsmatched prefixes, so the defaulttempskippedtemporal-fx/andtemplate/,archiveskippedarchive-tools/, and so on;hpm cleanthen saw that project’s packages as unused and removed them. A pattern now matches a whole folder name. Upgrade note: a pattern written to skip a family of folders by prefix (backupforbackup-2025/) now skips only the folder with exactly that name; list the others too. - The checksum
hpm.lockrecords for a package now frames each file’s path and contents with their lengths. The old digest concatenated them, so two different package trees could hash the same (fileaholdingbcand fileabholdingc). New entries are written asv2:<hex>; an entry without the prefix, as every existing lockfile holds, is still verified the old way, so no lockfile breaks. Breaking (hpm-core API):tree_hash::hash_treereturns thev2:digest;tree_hash::hash_tree_asrecomputes a tree in the format a lock recorded. - Installing a package whose slug and version match another creator’s
package already in the store (
acme/tools@1.0.0andstudio/tools@1.0.0) failed silently: the store keys packages by slug, and the install handed back the other creator’s copy. It now stops with an error naming both. Keeping both at once needs a store layout change, which is not part of this release.
Changed
hpm packnames the archive after the package slug instead of its display name:{slug}-{version}[-{platform}].zip(studio-tools-1.0.0.ziprather thanStudio Tools-1.0.0.zip). A display name could hold characters Windows refuses in file names (:,?,*, …), and two packages sharing one could overwrite each other’s archive. Read the path fromhpm pack --json’sarchivefield rather than guessing it.
[0.38.2] - 2026-11-13
Fixed
- A sync could fail with “create dev copy target … Invalid argument” (seen on macOS) when it installed a new version of a path dependency while an earlier sync’s background cleanup was removing that version’s then-empty folder. The install now recreates the folder and carries on.
- 0.38.1 shipped no Windows binary: a test of this cleanup failed once on the Windows build (an older version’s copy was gone while a project still used it). It has not recurred and its cause is not yet known; the test now reports what it found. 0.38.2 is the first Windows build of 0.38; see 0.38.0 for everything that changed.
[0.38.1] - 2026-11-12
Fixed
- hpm builds on Windows again. 0.38.0’s Windows build failed (a logging import was compiled only on Unix), so 0.38.0 shipped no Windows binary; 0.38.1 is the same release with that fixed. See 0.38.0 below for what changed.
[0.38.0] - 2026-11-12
Fixed
-
hpm add creator/slug@1.0.0writes the dependency ascreator/slug. It wrote the key"creator/slug@1.0.0", which nothing could install. -
hpm cleanno longer removes a version of a package that another kept package depends on when the project itself pins a different version of it; whether it was kept used to depend on the order of the project’s dependencies. A package depending on another version of a package already in its chain is also kept now. -
hpm addresolves against the project’s[[registries]]when it declares any, ashpm installdoes, instead of always the configured registries. -
A
[compat].houdinirange semver cannot read (==21, or an operand with a leading zero such as22.00) no longer counts as matching every Houdini.hpm global addand dependency solving now judge a range the way Houdini evaluates the package’senable(checked against Houdini 22.0’s own evaluation: a version is compared over the operand’s components, so21.0.445equals21and is below21.1). The emittedenablestrings are unchanged. -
A range written with a single
=(=21) has a lower bound again, so the project’s Python version is chosen from it instead of skipped. -
Installing one version from two places at once (hpm and an embedding application, or two syncs) no longer corrupts the store copy. Each fetch now extracts into a directory of its own, and a store copy is copied into a private staging directory and renamed into place, so the store never shows a half-copied tree.
-
A download whose extraction failed (a crash, or an entry refused as a path traversal) is no longer installed on the next attempt as it stood, unverified. Nothing in fetch staging is reused.
-
An archive with a root-level file whose name begins like a directory beside it (
anext toab/) no longer loses that file on extraction. -
fetch_manifest(used by embedders) finds a package already in the store when asked by its scopedcreator/slugname. It looked in the wrong directory, missed, and downloaded and re-copied the package over a live store copy. It also stages downloads underhome_dirlike every other install, instead of besidepackages_dir. -
fetch_manifestwith"latest"picks the highest non-yanked release instead of the highest version outright. -
hpm initwrites a validpython/__init__.py. It used to begin with an empty string literal followed by bare text, which Python rejects.
Changed
-
Python venvs, the bundled uv, uv’s cache and config, and the managed CPython it downloads now live under the configured
[storage] home_dir(venvs/,tools/,uv-cache/,uv-config/,uv-python/). They always went to~/.hpmwhatever it said. Upgrade note: with a customhome_dir, the copies an older hpm left in~/.hpmare not moved or cleaned up; the first sync rebuilds venvs under the new home, and the old directories can be deleted by hand. With the default home nothing moves.prepare_script_envreads the user’s configuration for the same home. -
[install] parallel_downloadsnow bounds how many packages a sync installs at once (it was read but never used), and must be at least 1: a config file withparallel_downloads = 0(which meant nothing before) now fails to load until the line is removed or raised.[install] path, which was never used, is gone from the config; an existing file holding it still loads, with a warning. Any other unknown key in a config file is now an error that names it (a misspelt[registry]orparalel_downloadsused to be ignored). Config files written byConfig::save(as embedders do) still load. -
More of
hpm.tomlis checked when it is read rather than byvalidate()later: the package version must be semver, apythonselector must be a Python version (a script’spythonpin was never checked), platform keys in[stage.platform], profile platforms and per-platform operator sources must be known platforms, and a script’swhenmay only useos(and a conditionalcmdmust not be empty). Errors name the bad key or value instead of “did not match any variant”. -
Stricter
hpm.toml: a dependency table with an unknown or misplaced key is now an error that names it, instead of the key being dropped (registy = ...andoptinal = trueused to give an unpinned, required dependency; a path dependency’sversionvanished;{}parsed). The same holds for[python_dependencies]tables, which must giveversionand/orextras. Every installable package published on the registry this was checked against still parses. Upgrade note: the rule applies to everyhpm.tomlhpm reads, including packages fromurl = ...dependencies and copies already in the store. A store copy whose manifest is now refused is skipped (with a warning) when listing installed packages, and reinstalling it names the manifest error; move the copy and its.files.jsonaside (as for a repair) once a fixed version is available. -
hpm list --output json: a path or URL dependency’sspecno longer carries"optional": false. -
hpm.lockno longer recordsurl = "unresolved"for a registry dependency that was already installed when no previous lock entry knew its source. hpm now looks the download URL up in the project’s registries (only in that case), and stops with an error when it cannot. Existing lockfiles holding"unresolved"still pass--frozen-lockfile, which compares versions only and never contacts a registry, and the next lock rewrite replaces the placeholder. -
hpm cleanstops with an error, instead of deleting more, when it cannot read something that decides what is in use: the global-install directory or an entry in it, a dev copy’s user records, or an entry in a project search root. A dev copy whose records cannot be read is kept. -
An install never replaces a store copy that is already there (a running Houdini may have it loaded);
hpm global addused to. To repair a damaged copy, move it and its.files.jsonaside first. A tree withouthpm.tomlor a stale link is still replaced. -
[storage] cache_diris honoured: downloaded archives are cached there. They used to go to<home_dir>/cachewhatever it said. Archives an older hpm left in<home_dir>/cache, and extracted downloads left in<packages_dir>/../fetchwhenpackages_diris outsidehome_dir, are still reclaimed by the fetch-staging sweep and byevict_download. -
hpm check(and the checkhpm packruns first) measures package size over what pack would ship, so a gitignoredbuild/ortarget/tree no longer triggers “Package size is large” or “Large file detected”. A file in the package that cannot be read is now an error instead of silently skipping the size check. -
hpm initprints its package tree sorted, with correct└──/│connectors. -
hpm installno longer draws a spinner (which ignored--quiet). -
-v,-q,--colorand-Cwork after the subcommand too (hpm update -v).--output <format>still goes before it. -
-C <dir>now means “run in<dir>” for every command:add,remove,update,list,installandauditused to ignore it. Relative paths in other arguments resolve against it, as withgit -C.check,packandruntake-m/--manifestlike the other project commands. -
Without
-v, stderr carries only warnings and errors: the timestamped INFO lines that preceded every result (and the JSON error document) are gone. Warnings the user should act on (an old or unreadable lockfile, an existing dependency being replaced, a skipped update requirement) go through the normal warning output. -
Invalid values are refused with a usage error (exit 2) instead of being accepted:
init --vcstakesgitornone(--vcs gtiused to skip git silently),registry add --typetakesapiorgit,build/pack --platforma known platform,global --houdinia Houdini version, andclean --python-onlyconflicts with--comprehensive. -
Exit codes:
hpm auditexits 1 when a checksum or installed-file check fails, orhpm.lockcannot be read (printed asFAIL; the advisories still only warn).hpm registry updateexits 1 when a registry could not be refreshed, after reporting each one; it used to print “complete” and exit 0.hpm --output json updateneeds--dry-runor--yes; it used to apply the updates without asking. Scripts that relied on exit 0 from these now see the failure. -
hpm updatestops on anhpm.lockit cannot read instead of treating the project as unlocked, and on a package name that is not a dependency instead of ignoring it. -
The JSON error document honours
--output json-compactandjson-lines(one line) instead of always being pretty-printed. -
hpm packrefuses a host platform missing from[compat].platformswith the messagehpm buildgives, and both list the declared platforms by name (linux-x86_64, macos-aarch64). A package directory that cannot be listed while looking for{slug}.jsonorREADME.mdis now an error instead of counting as “not there”. -
hpm initno longer writes a rootpackage.json. Nothing read it: hpm writes each dependency’s Houdini package file at install time, andhpm packgenerates the shipped{slug}.json. Existing files are left alone, andhpm initin a directory that has one still works. -
hpm checkno longer reports the two “[OK] Generated … package.json” lines ininfo; they checked output from an emitter nothing else used.
Removed
- Breaking (hpm-core API):
ProjectManager::add_dependencyandProjectManager::remove_dependency,storage::PackageSpec,storage::VersionReq,InstalledPackage::is_compatible_withandProjectError::NoMatchingVersion. Nothing called them; they also wrote ranges intohpm.tomlthat install then looked up as exact versions, and read a bare version as^x.y.z. Edit dependencies withproject::manifest_edit(whathpm add/hpm removeuse) and runsync_dependencies. - Breaking (hpm-package API):
PackageManifest::generate_houdini_package,ManifestEnvEntry::to_houdini_env_value,HoudiniEnvValue::replaceandDependencySpec::validate.generate_houdini_packageemitted a different file from the one hpm installs; usegenerate_houdini_native_package(_for)for the shipped{slug}.json. - Breaking (hpm-core API):
ProjectManager::generate_houdini_manifests. It emitted without the package’s venv;sync_dependencieswrites the manifests. ProjectManager::lock_filebuildshpm.lockfrom a sync (the CLI’s lock building moved into hpm-core), andPythonDependencySpec::version_reqandPlatform::host_idreplace copies of the same logic.- Breaking (hpm-config API):
InstallConfig::pathis removed andparallel_downloadsis aNonZeroUsize. - Breaking (hpm-package API):
Condition::pythonandScriptEnv::pythonarePythonTags;PlatformStaging::entriesandOperatorSource::PerPlatformare keyed byPlatform;ScriptEnv::cmdis aScriptCommand(ScriptVariant/ScriptCondition,osonly);Platform::os_keyreturnsOsKey;ManifestEnvEntry::lowerandlower_conditionaltake anInstallSourceinstead ofis_dev. - Breaking (hpm-package API):
PythonDependencySpec::Detailed’soptionalis aboolandextrasaVec<String>(they wereOptions), andPythonDependencySpec::extras()returns a slice. - Breaking (hpm-package API): the free functions in
env_value(compile_houdini_req,houdini_req_lower_bound,houdini_req_has_upper_bound,normalize_hpackage_houdini_req). Use the methods ofHoudiniRange. Breaking (hpm-core API):python::collect_python_dependenciesis no longerasync; a Houdini version with a non-numeric minor (21.x) is now an error. hpm_core::packer::pack_packagedoes everythinghpm packdoes except signing-key resolution and rendering, so embedders get the same archive, gates and warnings;CompatConfig::resolve_target_platform(hpm-package) picks the target platform for pack and build. Breaking (hpm-core API):PackResult::platformis anOption<Platform>(it was a string; it serializes the same).- Package validation moved into
hpm_core::check(check_packagereturns aReportof typed findings), for pack and embedders to share. - Breaking (hpm-core API):
LockFile::has_changes. What it checked (--frozen-lockfile) isProjectManager::lock_is_current, which compares a sync’s outcomes with the lock without building a new one. - Breaking (hpm-core API):
python::get_venvs_dir. The Python subsystem takes apython::PythonHome(PythonHome::for_storage(&config.storage), orPythonHome::of_user()for~/.hpm):initialize,resolve_dependencies,resolve_combined,ensure_script_venv,bundled::ensure_uv_binary/ensure_managed_python/run_uv_command,VenvManager::new(now infallible) andVenvManager::with_venvs_dir, andPythonCleanupAnalyzer::new(now infallible) take one.prepare_script_env(entry)keeps its signature and resolves the home from the user’s configuration;prepare_script_env_in(home, entry)takes it explicitly. - Breaking (hpm-core / hpm-config API):
archive_fetcher::cas_install_dir,archive_fetcher::fetcher_install_dir,StorageConfig::package_dirandFetchManifestError::NoVersionsAvailable. Usestorage::StoreLayout(StorageManager::layout()) orstorage::layout::cas_dir/download_key;StorageManager::get_package_pathandpackage_existsare unchanged and now accept a scoped name too.
[0.37.0] - 2026-11-11
Fixed
- Dev copies no longer pile up. A path dependency that is installed as a
copy (any package with
[compat].platforms, orlink = false) gets a new copy under~/.hpm/packages/_dev/each time one of its shipped files changes, and onlyhpm cleanever removed the old ones. One machine collected about 490 copies and 500 GB. Everyhpm install/ sync now removes the copies it supersedes, once no project’s packages point at them and no process recorded as using them is still running. Copies made by an earlier hpm are removed byhpm clean, which now checks what every project points at first. When a project moves to a new version of a dev package, the old version’s copies go too, once no other project still uses that version. - A dev copy cut short (hpm crashed or was killed mid-copy) no longer leaves its unfinished staging directory behind for good: it is removed once the process that was copying is gone.
- On Windows, a dev install no longer fails with “The process cannot access
the file because it is being used by another process” (os error 32) while
something else has the package’s
_devfolder open: another install, a clean-up pass, or Explorer showing the folder. hpm cleanno longer leaves a half-deleted dev copy behind when a running Houdini has files open in it on Windows, and can delete read-only files (older dev copies carried a.gitdirectory).
Added
- For embedders:
hpm_core::process_users(a process record and the rule for whether it still runs), andhold_project_dev_copies,record_project_process,record_process_user/release_process_userto name a process as a user of the dev copies it reads.
[0.36.1] - 2026-11-08
Added
- Installs record their files, and
hpm auditchecks them. A package installed from a registry or URL now gets<slug>@<version>.files.jsonbeside its directory, listing the path, size and SHA-256 of every file the archive installed.hpm auditcompares each locked package with that record and warns about every file that is missing, cut short or changed. Files Houdini and Python add to a package while it is used (__pycache__, HDA backups) are not in the record and are never reported. Packages installed by an earlier hpm have no record until they are next installed. For embedders:hpm_core::install_manifest::verifyandStorageManager::verify_installed.
[0.35.2] - 2026-11-06
Fixed
- The user guide no longer points dev installs at the build tree. Its HDK
plugin pattern gated
HOUDINI_DSO_PATHoninstall_source = "dev"with a path intobuild/Release. Since 0.35.0 a dev install is a copy of the staged image, which has no build tree, so that setting left a dev launch with no operators. The guide now points both kinds of install at the directory[stage]places the binaries into, and keepsinstall_sourcefor values that really differ between them.
[0.35.1] - 2026-11-02
Added
StorageManager::installed_at(dir)returns the installed package rooted at a directory inside the store, dev installs under_dev/included (whichlist_installedhides). It never chooses between versions; it is for callers that already know which install they want.
Fixed
ProjectManager::list_dependenciesreports a path dependency’s dev install. It chose each dependency’s copy by version from the store listing, which hides_dev/, so a path dependency (a dev override) was handed the newest registry copy of the package. An embedder that runs hooks from that copy ran the released build’s hook instead of the dev build’s. The copy is now the install the package’s emitted Houdini manifest pointshpathat, which is what Houdini loads. Without a readablehpath, a registry dependency still falls back to its pinned version, and a path dependency reports no copy rather than a different build.
[0.35.0] - 2026-11-02
Added
StorageManager::evict_download(name, version)forgets a version’s cached archive and any extracted copy left in fetch staging, so an embedder that found an installed copy damaged can reinstall it from a fresh, verified download. A reinstall otherwise reuses a leftover staging copy as it stands, which would reproduce the damage. An embedder can use it to repair a package whose program the OS refuses to start.StorageManager::sweep_fetch_stagingremoves what earlier installs left in fetch staging, skipping entries younger than a given age so it never races an extraction in flight.hpm_core::disk_fullrecognises a full disk from anio::Error, an error’s source chain, or a child process’s message, with the per-platform codes that collide across platforms kept apart.
Changed
StorageErrorhas a newStagevariant, returned when a dev copy’s file set cannot be built from the workspace’s ignore files and[stage]rules (a bad glob, an unreadable.hpmignore). Code that matchesStorageErrorexhaustively needs an arm for it.
Fixed
-
A dev copy installs the package’s image, not its whole workspace. A path dependency installed as a copy (including a
link = trueone that declares native platforms) cloned the entire workspace:.git/, cargotarget/dirs, CMake build trees and virtualenvs. On a native package that came to 19 GB and 62,000 files, so an embedder’s dev launch took longer than the request that asked for it. The copy now stages the same fileshpm pack/hpm buildwould:.gitignoreand.hpmignore(with!re-includes),[stage]include/exclude and the host’s place rules, plushpm.toml. The content hash covers only those files, so a rebuild in an ignored tree no longer forces a recopy. When the ignore files have no!rules, pack, build and dev copies also skip ignored directories instead of walking every file inside them. The dev copy’s hashing and copying no longer block an async worker thread. -
A managed Python damaged by a full disk repairs itself. When the disk filled while uv was rewriting a fresh CPython’s
_sysconfigdata, the truncated file stayed behind, and every lateruv python installstopped on it withUnexpected end of file, so no project with Python dependencies could resolve until someone deleted the copy by hand. A failed install check now reinstalls the managed interpreter once (it lives in HPM’s own tree and is re-downloadable), unless the failure is the disk being full, which a reinstall cannot fix. -
hpm cleankeeps the version a project uses. The collector looked an installed package up by bare slug in a map that kept one arbitrary version per slug, so with several versions in the store it protected whichever the scan met last and removed the one the project depended on, and a scopedcreator/slugkey matched nothing, so every package of a project written with scoped keys was classified orphaned. A dependency now resolves to the installed copy at the version it names (read as the solver reads it: a bare1.2.3is exactly that version), else the highest one its range admits; a path dependency protects only its_dev/install. -
A download is no longer kept twice. Every install extracted its archive into
~/.hpm/fetch/, copied that into the store, and left the extracted copy behind, so each installed version took twice its size and the staging copy outlived the store’s when the version was removed. Both fetch-and-install paths now go through one sequence that removes the staging copy once the store holds the package.
[0.34.1] - 2026-10-19
Fixed
- A project’s dependency reports the installed copy the project uses.
ProjectManager::list_dependenciesmatched an installed package by path alone, so with several versions in the store it returned whichever the scan met first. A project on a package’s 1.76.0 with 1.40.1 also installed was handed 1.40.1: an embedder then ran that release’s hooks, which it did not declare, andgenerate_houdini_manifestscould point Houdini at the old copy. The copy is now the version the project manifest names, else the highest installed.
[0.34.0] - 2026-10-19
Added
- Registry entries carry
deps, andregistry::solvechooses a set of versions that works together. The registry index has always had Cargo’sdepsfield, butRegistryEntrydropped it, so nothing could see that a package’s 1.74 declaresacme/core = ">=0.47, <0.48", and a client taking each package’s newest version paired it withacme/core0.48, which removed an API 1.74 calls.RegistryEntry::depsreads the field, andregistry::solve::solvepicks one version per package given the target Houdini and any pins: a pin stands, an unpinned package takes its newest non-yanked version whosehoudini_compatadmits the target and whose requirements agree with the rest of the set, backtracking until they do. A conflict names the package and the requirement that could not be met. It is pure over version lists the caller fetched, and is checked against a brute-force search by property.
Changed
- Dependencies refreshed.
zip8 → 9 is the only semver-major move; the rest is a lockfile refresh within existing ranges. The tree went from 308 to 301 crates. - An archive entry whose name is flagged UTF-8 but is not valid UTF-8 now
fails the install instead of extracting.
zip8 decoded such a name lossily, so the entry landed under a filename with U+FFFD in place of the bad bytes — a file that existed on disk under a name nothing in the package referred to.zip9 reports the name as undecodable, and hpm surfaces that as an extraction error. Archives from ordinary tools are unaffected: names that are not UTF-8 are written without the flag and decode as CP437, as before. - Minimum supported Rust version raised from 1.85 to 1.89. The declared
1.85 had already stopped being true —
timeandzip8.6 required 1.88 — andaes0.9.3 now requires 1.89. Builds from the pinnedstabletoolchain are unaffected.
[0.33.1] - 2026-09-22
Fixed
hpm pack --sidefxnow checks the descriptor it ships, not just the one it generates. A package directory holding a hand-written{slug}.jsonhas that file shipped verbatim, and it never passed through the generator — so the stricter path was the one hpm controls and the looser one was the one an author writes by hand, and--sidefxsilently did nothing on exactly those packages. The descriptor that reaches the archive is now checked whichever way it got there: a bounded or objectenable, an operand hpackage cannot read asmajor.minor, a clause it does not match (>,==), and a version it cannot store each fail the pack with the constraint named, instead of being refused at upload time by whatever tool publishes, in a message that does not say why. A hand-written file is still shipped byte for byte — the check only reads it, and never rewrites what an author wrote — and it reads only the fields it constrains, so a descriptor may carry Houdini keys hpm does not model. Generated descriptors go through the same check, which is what keeps the generator and the check from drifting apart unnoticed. Ahpackage.versionSideFX will store differently is reported rather than refused:0.1.0uploads as0.1, and the served archive’s URL uses the trimmed form.- Forwarded
hpm runarguments are quoted correctly on Windows. Per-argument quoting escaped embedded quotes but ignored the backslash ruleCommandLineToArgvWand the MSVC CRT parseargvwith, where a run of backslashes before a"is halved. A trailing separator —hpm run x -- C:\out\— came out as"C:\out\", whose closing quote the child reads as literal data, so the argument never terminated and swallowed the rest of the command line; an argument already containing\"was escaped into a sequence that ended the argument early instead. Arguments that worked before are quoted byte-identically. One case has no fix at this layer and is now documented rather than attempted:cmd.exeexpands%NAME%inside double quotes and its command-line parser, unlike a batch file’s, offers no way to suppress it. The Windows and POSIX quoting are also no longer behind#[cfg]at their definition, so both are compiled and tested on every host — the Windows path had not been built by CI on Linux or macOS at all.
[0.33.0] - 2026-09-10
Added
hpm pack --sidefxemits the bundled{slug}.jsonin the form SideFX’s hpackage repository accepts, so an archive can be uploaded exactly as packed. Publishing there previously meant rewriting that json and re-zipping, which invalidated the SHA-256 and the Ed25519 signaturehpm packhad just reported. The flag trimshpackage.versionthe way SideFX’sVersiondoes (0.1.0becomes0.1, which is also the version in the served archive’s URL) and rewrites theenableexpression’s version operands tomajor.minor, padding a one-segment bound and keeping a three-segment one only when its build is zero. It changes nothing about anhpm install: the extractor skips this file and generates its own.--sidefxrefuses rather than emit a descriptor whose meaning changed. A build-level bound such as>=20.5.445has no two-segment form, and truncating it to>=20.5would enable the package on builds[compat].houdiniexcludes — on hpm-managed installs too, since the same expression ships to both. A bounded range is refused outright,^21included: hpackage matches the wholeenablevalue against one clause, and the per-clause object form its own docstring suggests is not a narrower gate but no gate at all. Houdini reads an objectenableas a conditional map, loading the package when any key matches and warningUnsupported value for enablewhen none does, single-key objects included — measured withhconfigon 21.0.729 and 22.0.368. A missing[compat].houdini, a range compiling only to<,>,==or!=, and a missing or placeholder-onlyREADME.mdare refused for the same reason: hpackage rejects each on upload with a message that does not name the cause.
Fixed
- The bundled Houdini descriptor is matched by exact filename.
hpm packships a hand-written{slug}.jsonverbatim instead of generating one, and chose between them withPath::exists— which APFS and NTFS answer case-insensitively. A package holdingFLOPs.jsonfor slugflopstherefore shipped the author’s file as the root descriptor when packed on macOS or Windows (in one real case carrying a hardcodedG:/drive letter) and shipped the generated descriptor when packed on Linux, so the same source tree produced a different archive depending on who built it. It also shipped that file twice, since the staging skip compares against the injected name byte-for-byte, and it bypassed--sidefxentirely, because a hand-written file is shipped without normalization. Lookups now compare directory entries, and a file differing only by case is reported and skipped rather than silently used. hpm checkrecognises limited-commercial and non-commercial digital assets. Theotlsscan accepted only.hdaand.otl, so a package whose operators are all.hdalcwas warned as containing no assets at all. All six extensions Houdini loads are now accepted —.hda,.otl,.hdalc,.otllc,.hdanc,.otlnc— and the warning names them instead of claiming only two exist. Thelcandncvariants are ordinary HDAs saved under a restricted license.- Two doc comments described integrity checks hpm does not perform. The
archive extractor claimed archives are “checksum- and signature-verified”
before extraction, and
RegistryEntry.sigdescribed the signature as covering the checksum rather than the archive bytes thatpacker::sign_archiveactually signs. Signature verification is still unimplemented; the comments and thedocs/security.mdnote now agree on that, re-verified at 0.32.0.
[0.32.0] - 2026-08-26
Fixed
- A version released for more than one platform is no longer listed once per
platform. A registry answers
/packages/<name>with one row per build, andRegistrySet::get_versionspassed those rows straight through as if they were versions, so a package shipping a Windows and a Linux archive had every such version appear twice in any version listing.get_versionsandRegistrySet::searchnow collapse a version’s builds to one entry, preferring the host’s build. - An unpinned range on a multi-platform package could resolve to another
platform’s archive.
resolvefor a requirement like^1went throughhighest_matching, which compares version strings only: given several equal-version build rows it kept whichever the registry served last, with no host filtering at all. Collapsing builds before the comparison means it now sees the host’s build, matching what an exact-version lookup has always done viaselect_build_for_host.
Security
anyhowmoved off 1.0.102, which carries RUSTSEC-2026-0190 (unsoundness inError::downcast_mut(), patched in 1.0.103).cargo auditis clean again.
Changed
- Breaking (library consumers only):
hpm_core::packer::SigningKeyis nowed25519_dalek3.0’s type. It is a public re-export, so anything constructing aSigningKeyto hand topackmust move to dalek 3 with us. The CLI is unaffected — key files are PKCS#8 PEM either way, and existing keys keep working untouched. This is what makes the release a minor rather than a patch. - Dependencies refreshed.
ed25519-dalek2.x → 3.0,base640.22 → 0.23 andpetgraph0.7 → 0.8 are the semver-major moves; the rest is a lockfile refresh within existing ranges. Signatures are byte-identical across the dalek bump, now pinned by a known-answer test over a fixed key and message so no future crypto or encoding bump can change the wire format unnoticed — everysig/kidalready published stays verifiable. The tree lost 42 crates (350 → 308): dalek 3 drops the olddigest/generic-arraychain and the second copy ofsha2that came with it, and refreshing the lock pruned duplicatewindows-sysandwit-bindgentrees. petgraph’sgraphmapfeature is no longer requested. The graph is aDiGraphand never was aGraphMap, so the feature only ever pulled code that went unused.hpm-clino longer declaresignore. It callshpm_core::packer’sbuild_ignore_rulesand passes the result straight back, never naming the crate itself.
[0.31.1] - 2026-08-05
No functional change over 0.31.0 — the library and CLI behave identically.
0.31.0’s macOS binary was never published: a property test generated a path
terminating in .., which has no file name, and asserted one anyway, so the
macOS release worker failed on the test rather than on anything it was
testing. The generator now produces the <scope>/<slug>@<version> shape an
install actually creates, and the no-file-name case is pinned as its own test.
Use this release rather than 0.31.0 if you are on macOS.
[0.31.0] - 2026-08-05
Fixed
-
A package that was already installed when its executable bit went missing is now repaired, instead of staying broken forever. 0.30.2 restores a lost executable bit as it extracts an archive, which only ever helps content hpm is about to extract. A package at a version you already have is never extracted again, so an affected install kept its programs at
0644through every laterinstall,sync, and hpm upgrade — the package’s own[scripts]entry went on failing withPermission denied (os error 13)on macOS and Linux, and the fix looked like it had done nothing.Reusing an installed tree now sweeps it with the same content-driven, additive rule (ELF / Mach-O /
#!and no execute permission → mirror the read bits). The sweep runs once per installed version, recorded in a<name>@<version>.exec-modesfile next to the package directory — outside the tree, since a package’s checksum is computed over its contents.
Added
StorageManager::repair_exec_modes()sweeps every installed package in one call and reports(swept, repaired). For an embedder that wants a user’s store repaired as part of its own update, rather than whenever something next happens to touch a given package. Cheap to call unconditionally — a tree already swept costs one small read.exec_mode::mirror_read_bits(mode)exposes just the widening the repair applies (0o644→0o755,0o640→0o750). For an embedder about to spawn a path its manifest declares as a program: the manifest is proof no content sniff can produce, it covers what a sweep structurally cannot reach (a dev copy, a file that appeared after the tree was swept), and the widening must match the sweep’s.
[0.30.2] - 2026-08-02
Fixed
-
A packaged program no longer arrives without its executable bit, so packages that ship a binary work on macOS and Linux.
hpm packwrote every archive entry as0644regardless of the file it came from, which quietly stripped the executable bit off anything a package ships as a program — a[scripts]entry pointing atbin/<platform>/<tool>, a bundledconfigure.sh. Installing such a package produced a tree whose own declared programs could not be run: the script failed at spawn withPermission denied (os error 13)on every Unix host, while the identical package worked on Windows, where executability is not a file mode. Pack now carries the source file’s executable bit into the archive. It is normalised to exactly0755/0644rather than copied verbatim, so the packing user’s umask cannot change the archive bytes — and therefore the package checksum — for an otherwise identical tree.Two consequences worth knowing. Existing published archives are unaffected until they are re-packed with this version; and because Windows has no file mode to read, an archive carrying a Unix program must be packed from a Unix host. Per-platform CI that builds each archive on its own worker already satisfies this.
-
A symlink in a package’s source tree no longer disappears from the archive, and a symlink in someone else’s archive no longer installs as a corrupt file. Two halves of one gap. Packing tested the link itself rather than what it points at, so every symlink was dropped without a word — a package laying out
libfoo.so -> libfoo.so.1.2.3, the ordinary Unix convention, simply shipped withoutlibfoo.so. A link to a file is now packed as a regular entry holding the target’s bytes; a link to a directory is skipped with a warning (its contents were never walked), and a broken link is skipped instead of failing the pack later with an unhelpful message. Extracting had the mirror-image fault: zip records a symlink as an entry whose payload is the target path, flagged only in mode bits nothing inspected, so it was written out as a regular file containing a path string. Such entries are now skipped, matching what tar extraction already did. Skipping rather than recreating the link is deliberate — a link is the one entry type that can redirect a later entry’s write outside the target directory, which validating the link itself would not prevent. Since packing now resolves links, hpm’s own archives never contain one. -
Install now restores a lost executable bit rather than propagating it. hpm installs from arbitrary hosts — GitHub Releases, SideFX hpack, a studio’s own bucket — and a great many zip producers drop Unix modes entirely, so the problem above is not limited to archives hpm packed. Extraction now restores the executable bit on a file whose leading bytes identify it as a program (an ELF or Mach-O object, or a
#!script) when the archive declares no execute permission for it. The repair is additive and content-driven: a mode the archive does declare is applied untouched, a restrictive mode is not widened past its read bits (0640becomes0750), and a file that is not a program is never made executable.
Security
- Updated two transitive dependencies flagged by
cargo audit:quinn-prototo 0.11.16 for RUSTSEC-2026-0185 (remote memory exhaustion from unbounded out-of-order QUIC stream reassembly, severity 7.5) andcrossbeam-epochto 0.9.20 for RUSTSEC-2026-0204 (invalid pointer dereference when formatting an invalid pointer). Lockfile only — no API change.
[0.30.1] - 2026-07-27
No functional change over 0.30.0; the hpm binaries are identical. The v0.30.0 tag’s Windows leg went red, so that release published only its Linux and macOS assets — 0.30.1 is the first 0.30.x carrying all three.
Fixed
- The new manual-install conformance test compared paths with the native
separator and so failed on Windows only. Houdini reports resolved
variables with forward slashes on every platform
(
C:/Users/.../packages/manual-tool), whilePath::displayuses\on Windows, so the assertion that the package root resolves to the extracted content folder comparedC:/Users/...againstC:\Users\.... The behaviour under test was correct — the same run shows Houdini 22.0.368 loading the package, warning about the absent recommended dependency, and reportingDisabled Packages (0)— only the assertion was wrong. It now normalises separators on both sides.
[0.30.0] - 2026-07-27
Fixed
-
A manually extracted package with dependencies loaded nothing at all. The
{slug}.jsonbundled in a packed archive exists so a user can download one archive, unzip it into a Houdini packages directory, and have it work without HPM. It listed the package’s[dependencies]under Houdini’srequires, which is a hard gate: for any absent entry Houdini logsPackage <dep> is required by <slug> but is either missing, disabled or invalidand thenPackage <slug> will be disabled— so the package contributed nothing, no HDAs, no environment, no toolbar. Nothing in that path could ever satisfy the entry: there is no resolver, and each dependency is a separate download the user has no automated way to obtain, so every package with a dependency was affected. Dependencies are now emitted asrecommends, which keeps the diagnostic — Houdini warns, naming the missing package — while letting what the archive does ship load normally. HPM-managed installs are unchanged: they emit neither field, because HPM guarantees the dependency is installed before Houdini starts. Verified against Houdini 21.0.729, and pinned by a conformance test that drives the real generator output throughhconfig. -
Packed archives were not actually “usable by Houdini even without HPM” — the promise the generated
{slug}.jsonexists for.hpm packzipped content flat (bin/,otls/, … next to{slug}.json) while the generated json points at$HOUDINI_PACKAGE_PATH/{slug}/...— one level down. A user extracting the archive into a Houdini packages directory got a package that registers (env vars set) but loads nothing: everyhpath/HOUDINI_PATH/HOUDINI_DSO_PATHentry dangled, so OTLs, DSOs, and toolbars were silently absent (reported by SideFX for a published package; reproduced headless — flat layout registers 0 of the package’s 96 SOP operator types, wrapped layout registers all 96). Archives now use the Houdini “hpackage” layout the json expects:{slug}.jsonat the root next to a{slug}/content folder. A hand-written{slug}.jsonships once, at the root.hpm installdetects the new layout, strips the{slug}/wrapper (installed trees stay flat,hpm.tomlat the root as before), and skips the root json (HPM generates its own package jsons); legacy flat archives and Git-style single-root archives extract exactly as before. The pack-time[[operators]]asset verification resolves declared sources at their prefixed archive paths. -
hpm pack --output <dir>failed when the directory did not exist yet. It aborted with `Package error: failed to create archive/ - .zip: No such file or directory (os error 2)` — the path in the message being the *archive*, not the missing directory, so the error read as "the archive couldn't be written" and gave no hint that a `mkdir -p` was all it wanted. This bites release scripts that pack into a `dist/` directory on a clean checkout. The output directory is now created if absent, and a genuine failure to create it reports that path. -
A successful package download could fail with a bogus checksum mismatch. Installing or syncing occasionally aborted with
Checksum mismatch: expected <...>, got e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855— the second value being the SHA-256 of no bytes at all. The archive had in fact downloaded correctly; the write to the download cache was only queued, not yet on disk, so the verification step that runs immediately afterwards read an empty file. The download is now flushed and made durable under a temporary name and renamed into place only once complete. This also fixes a second, longer-standing problem: a download interrupted partway (network drop, process killed) left a truncated file in~/.hpm/cache/that every later run treated as a complete cache hit, so the package stayed broken until the cache was cleared by hand. Partial downloads are no longer visible under the final name and can’t be mistaken for finished ones.
[0.29.5] - 2026-07-21
Fixed
- Windows release-upload verification still failed after the 0.29.4 fix.
The 0.29.4 change (assign the parsed JSON to a variable, then
@(...) | Where-Object | Select-Object) did not actually cure the Windows PowerShell 5.1 array handling:ConvertFrom-Jsonemits a JSON array as a single non-enumerated object, so wrapping it in@()produced a one-element array containing the asset array, and the name filter leaked the whole array through —$asset.sizewas then anObject[]and the size check threwCannot convert ... Object[] ... to Int64. As on 0.29.3, the upload itself succeeded and all three binaries were present on the release; only the verification read-back failed. The asset lookup now iterates the parsed result withforeach, which enumerates aConvertFrom-Jsonarray’s elements identically on PowerShell 5.1 and 7 and returns a single object.
[0.29.4] - 2026-07-21
Fixed
- Windows release upload reported a false failure when verifying the
uploaded asset. Under Windows PowerShell 5.1 an inline
ConvertFrom-Json | Where-Objectdoes not enumerate the parsed array, so the post-upload size check read the whole asset list instead of the matching asset and failed even though the upload had succeeded (this is whyv0.29.3’s Windows leg went red despite all three binaries being present on the release). The asset lookup now assigns the parsed JSON to a variable and selects a single match, which enumerates correctly on both PowerShell 5.1 and 7.
[0.29.3] - 2026-07-21
Fixed
- Re-running a release pipeline could publish a stale binary. The upload
step appended
|| true(Linux, macOS) or wrappedcurl.exeintry { ... } catch {}(Windows) so that re-running a tag would survive the HTTP 422 GitHub returns for an asset that already exists. That is not idempotence: GitHub rejects the upload and keeps the old binary, so a rerun after a code change republished the previous artifact while reporting success. Uploads now delete an existing asset of the same name before uploading, and verify afterwards that what landed on the release matches the file that was built. - The Windows upload step failed the pipeline on a re-run. PowerShell
try/catchdoes not catch a native executable’s exit code —curl.exesets$LASTEXITCODErather than throwing — so thecatch {}intended to swallow the duplicate-asset 422 was dead code and the step exited 1. This is whyv0.29.2’s pipeline showed a Windows failure despite all three binaries being present on the release.
[0.29.2] - 2026-07-20
Fixed
- Documentation audit: the registry examples pointed at a domain that no
longer resolves. Every doc and doc-comment example used
https://api.3db.dk/v1/registrywith the aliashoudinihub.api.3db.dkdoes not resolve at all, so the examples were not merely off-brand — they were broken. Replaced throughout with a registry URL that resolves. --helpreferencedhpm sync, which was removed in favour ofhpm install. Fixed inadd --link’s help text and two internal doc comments.hpm init --houdini’s help claimed the template default was>=20.5; it is^21.docs/security.mdoverstated hpm’s guarantees. It listed “unknown signer” as a mitigated threat and implied installs fail on a bad signature. hpm signs but never verifies: no install path reads the registry’ssig/kidfields, and SHA-256 is the only integrity check on download. The threat is now documented under “Not addressed”, with an explicit note that verification is the consumer’s responsibility.docs/security.md’s lockfile example did not match the schema. It showed atype = "registry"source;LockedSourcehas onlyUrlandPathvariants.- Corrected
registries.md(API registries are uncached and searched sequentially, not cached and parallel; yank filtering applies to range requirements but not exact pins),python-guide.mdandarchitecture.md(the venv content hash is truncated to 16 hex chars, not 12, and hashes only names and versions — both files also carried a fabricated hash function that never existed),api-overview.md(GlobalDependencyGraph,ResolvedDependencies,ResolvedPackageandDEFAULT_SCRIPT_PYTHONdo not exist;CliErrorhas four variants, not six; exit code 2 is never emitted),testing.md(the documented CI matrix and proptest regression paths were fictional), anduser-guide.md(hpm run --projectis not a flag,--bareemits onlyhpm.toml,[install].pathandparallel_downloadsare inert, andprependemits a JSON list).
Added
docs/manifest.toml, so the docs can be assembled into a second site alongside the existing mdBook build on Read the Docs. Contributor docs (architecture, API overview, testing) are now listed inSUMMARY.mdtoo, so they render on both sites instead of being silently dropped.
[0.29.1] - 2026-07-18
No functional change over 0.29.0. The v0.29.0 tag failed CI and
published no binaries, so 0.29.1 is the first release carrying that
work — see the 0.29.0 entry below for what it contains.
Fixed
-
The Houdini conformance test no longer pins its fixtures to Houdini 21.x, which had been blocking every release since 0.28.0. The test builds fixture packages with
PackageManifest::new, which defaults[compat].houdinito^21; that lowers to anenableclause excluding Houdini 22, so Houdini skipped the fixture manifests entirely and only the never-gated project overrides manifest contributed. The env-merge assertions then failed with a diff that looked like broken merge semantics but meant “the fixtures never loaded”.The build workers carry both Houdini 21 and 22 and the test targets the newest, so this failed in CI while passing on a developer machine with only Houdini 21 installed. Because all three
build-*workflows declaredepends_on: check, the failure skipped every platform build — v0.28.0, v0.28.1 and v0.29.0 were all tagged without producing binaries.Houdini’s env merging is identical across 21 and 22; this was never an hpm emission bug. Verified by running the same emitted manifests through
hconfigon 21.0.729 and 22.0.368. The fixtures now declare>=20, and a guard reports “package manifests did not load” instead of a misleading value diff if this regresses.
[0.29.0] - 2026-07-18
Changed (breaking)
Behavioral, for everyone:
-
A dependency’s
registry = "<name>"pin now constrains resolution. A manifest that pins a registry previously resolved across all of them, so a package could have been coming from a different registry than the pin names. After upgrading, such a dependency resolves only from the pinned registry and fails if it is not there — which is the point, but it can turn a previously “working” install into an error that was always misconfigured. Pinning a registry that is not configured is likewise now an error. -
Houdini manifests are named
<creator>.<slug>.json. Migration is automatic (see Fixed), but it happens on the nexthpm installper project, not at upgrade time.
Library API, for embedders (the desktop client):
ProjectPaths::package_manifest_pathtakes&PackagePathinstead of&str, so a caller cannot pass something that is not a package identifier. Call sites pass&pkg.manifest.package.path.StorageErrorgains aGlobalLedgervariant; exhaustive matches need a new arm.HoudiniRange::matches_versiontakes a thirdbuild: Option<u32>argument (new in this release, but noted since it is public).
Fixed
-
hpm clean --python-onlyno longer proposes deleting every venv on the machine, including in-use ones.VenvMetadata.used_by_packageswas never written by any production code path —add_package_referencehad no callers outside a proptest — so the “is this venv still used?” check compared the active package list against a permanently empty vec, matched nothing, and classified every venv as orphaned. Venv creation now records the packages that contributed Python dependencies, and a venv with no recorded owners is kept rather than collected, since empty means “provenance unknown” (a per-script venv, or one created by an earlier hpm) rather than “unused”.A venv with no recorded owners cannot be matched against the installed set at all, so it is collected only once it has been idle for 30 days. That covers both
[scripts]venvs (which belong to a script, not a package) and venvs created by earlier hpm versions, without deleting anything in active use. Collecting a venv is never destructive — it is a content-addressed cache, rebuilt on demand — so this only trades rebuild time against disk.Owner references are scoped (
creator/slug@version). The previous comparison used the bare slug, which would have let an unrelated package sharing a slug keep another creator’s venv alive once the list was populated. -
Houdini manifests are now named
<creator>.<slug>.jsoninstead of<slug>.json. The slug alone is not a unique package identifier, so two dependencies from different creators sharing a slug (creator-a/toolsandcreator-b/tools) wrote the same file and the second install silently overwrote the first — Houdini loaded only one of the two packages, with no error..separates the segments because both may contain-, which would make a-join ambiguous (a-b/cvsa/b-c).Migration is automatic: manifests written by an older hpm under the bare slug name are cleared by the existing stale sweep on the next
hpm installand rewritten under the new name. No action required, but note the sweep only runs on install, so runhpm installonce per project to clear the old files rather than leaving both names present. -
hpm removenow actually deletes the dependency’s Houdini manifest. It built the path from the scoped dependency key, producing.hpm/packages/<creator>/<slug>.json— a nested path that never exists — so the removal was a silent no-op. It only appeared to work because the command re-syncs afterwards and the stale sweep caught the file. -
A dependency’s
registry = "<name>"pin is now honoured. The field parsed and round-tripped throughhpm.toml, but nothing ever read it: every registry dependency resolved first-match-wins across the whole configured set. A manifest that pinned one registry could therefore be served the package from a different one, silently, with no diagnostic. Resolution, install, andhpm updatenow consult only the named registry, and pinning an unconfigured name is a hard error instead of a fallback to the rest of the set.
Added
-
hpm global add|list|remove— install a package into Houdini’s user preferences directory so it loads in every session of one Houdini version, with no project and no launcher wiring. Resolution goes through the configured registries exactly likehpm add, including--registrypins, and the emitted manifest is byte-identical to what a project install produces.--houdini <X.Y>is required rather than detected: hpm has no Houdini installation discovery, and the preferences directory is per-version, so a guess could write where Houdini never looks.HOUDINI_USER_PREF_DIRis honoured when set, with__HVER__expanded as Houdini expands it.Houdini’s user
packages/directory is not hpm’s — it holds files from SideFX, other tools, and the user. So unlike a project install, which owns its output directory and sweeps unrecognized files from it,hpm globalnever scans that directory to decide what to delete. Installs are recorded in a ledger at~/.hpm/global/houdini-<X.Y>.json, and removal deletes only the exact file the ledger records writing.The ledger is also a
hpm cleanGC root. A globally installed package belongs to no project, so the project-rooted mark-and-sweep would otherwise classify it as unreferenced and delete its store directory while the manifest kept pointing at it. An unreadable ledger abortshpm cleanrather than being read as “nothing is installed globally”.A package whose
[compat].houdiniexcludes the target version is rejected before anything is written; installing it would emit a manifest whoseenableexpression is false, which Houdini ignores silently.Scope of this first cut: public packages only (the standalone CLI has nowhere to store credentials, so it resolves anonymously), and no
hpm global update— with no manifest to rewrite, updating ishpm global addat the new version, which replaces the entry in place. -
hpm add --registry <name>. Resolves from a single configured registry and records the pin inhpm.toml. Previouslyhpm addalways wroteregistry = None, so a pin could only be created by editing the manifest by hand. Not valid alongside--path. An unpinnedhpm addis unchanged: it still resolves across the whole set and stays unpinned, since recording whichever registry answered first would silently narrow future resolution.
[0.28.1] - 2026-07-15
Fixed
method = "set"now emits a flat string, so it overwrites path-registered variables instead of appending onto them. Houdini seeds path-registered variables (OCIO,PYTHONPATH,HOUDINI_*_PATH) flat-first from its own$HFS/packages/*.jsonand then treats them as always-merge-able, so hpm’s previous list-formreplaceforsetappended onto the seed (e.g. OCIO becamebuiltin;project), which crashed Main Preferences on H22.0.367. Asetvalue is now written as a bare string that overwrites the seed cleanly and load-order-independent — which is whatsetpromises.prepend/appendstill emit single-element lists (they must stay merge-able). A genuinely conditionalset({ when, set }list) still lowers to list-formreplace, since Houdini’s conditional-object array cannot be a flat string. Verified against real Houdini (H21.0.729 / H22.0.367).
[0.28.0] - 2026-07-13
Removed (breaking)
- Pre-0.16 (“Manifest 1.x”) manifest support and
hpm migrate. The read-side compatibility was scheduled for removal in 0.20.0 and is gone; old-format manifests now fail with a normal parse error. - Git registry flat-name index layout. Only scoped
creator/slugindex paths resolve; a non-scoped package name is an error. - Bare-OS registry platform tags (
"LINUX","WINDOWS"). These carried a silent x86_64 assumption; only canonical arch-suffixed tags (anduniversal) are recognized. Verified against a live registry: all current and historical entries already use canonical tags. -p/--packagemanifest flag. The manifest path is-m/--manifeston every command (add, remove, update, list, install, build, audit).- Lockfile format-version gate and never-populated lockfile fields
(per-dependency
dependencies, pythonchecksum/source/markers). Old lockfiles containing them still parse. - Dead API surface:
ConfigBuilder,ConfigErroralias,hpm migrate, the unused progress-bar framework, and ~30 other items with no callers (net -730 lines).
Changed (breaking)
- Unknown fields and sections in
hpm.tomlare now parse errors (deny_unknown_fields); a misspelled section no longer vanishes silently. - Config files are layered as presence-aware overlays. Each layer
(user, project) overrides exactly the values it sets; a project
config that omits a section no longer resets it to defaults, setting
only
storage.cache_dirworks, and a customstorage.home_dirre-derives its sub-directories.hpm registry add/removeedit the user config file directly instead of re-dumping the resolved config. - Silent degradations are now hard errors: malformed user config,
a registry that cannot be constructed, a failed
git pull(no more silently serving the stale cache), a corrupt git-registry cache, pack-time Houdini package.json or asset-index failures, and a failed post-remove lock regeneration. DependencySpec::Simplemerged intoRegistry. Thepkg = "1.0.0"shorthand still round-trips byte-for-byte.- Typed errors in hpm-core: the python subsystem and script runner
return
PythonError/ScriptRunErrorinstead ofanyhow::Error;RegistrySet::from_configs*returnsResult;RegistryEntry.platformis a typedPlatformTag;Condition.os/install_sourceare enums. --outputis never silently ignored: commands honor JSON output (list, check, update, search, pack) or reject non-human formats with a clear error;hpm check -qnow reports failures on stderr.
Added
- Archive checksum verification on install. Registry downloads are
verified against the entry’s
cksumbefore extraction; a corrupt cached archive is removed and the install fails with a checksum mismatch instead of installing tampered bytes. Entries without a checksum install with a warning. - Git registries now perform host-platform build selection, matching
the API registry: host build first, then
universal, else a no-compatible-build error. hpm searchreports registries that were unreachable instead of silently returning partial results.
Fixed
- Installs no longer silently skip unreadable files during the copy into the package store; walk errors abort the install.
- A malformed project
[compat]no longer silently drops the Houdini version used for Python ABI selection (which could pin a venv to the wrong CPython). - Checksums are always computed from the actual tree. The on-disk
.hpm-checksumcache (never invalidated, so silently stale) is gone, and one shared tree hasher backs both install-time recording and lockfile verification. hpm add/remove/updatepreserve comments and formatting inhpm.toml(formatting-preservingtoml_editediting, atomic writes).hpm addwithout a version now picks the highest non-yanked semver instead of relying on registry response order.- One default Python version (3.11): bare resolution previously defaulted to 3.9, which the Houdini ABI mapping refuses and could pin an ABI-mismatched venv.
hpm buildandhpm packshare one staging walk and can no longer disagree on what ships where.- Project
[runtime]append/prependoverrides no longer clobber the package values they were meant to extend. Houdini only honorsmethodon a custom (non-registered) variable when the variable’s first definition uses a JSON list value; with the flat strings hpm emitted, every later entry silently overwrote the variable (WARNING: var X overwritten), so the override — emitted last — won everywhere. The 0.19.0 override fix appeared to work because it was validated onPYTHONPATH, a registered path variable where methods work regardless. Every emitted value is now a single-element JSON list, making all hpm variables mergeable. Verified against a real Houdini (21.0.688 / 21.0.729) with a new license-freehconfigconformance test. method = "set"now emits Houdini’sreplace. Houdini has nosetmethod (WARNING: Unsupported method value: set); it only appeared to work because flat strings overwrote anyway.- Conditional
[runtime]values now deliver the documented first-match semantics. Houdini applies every matching element of a conditional-object array, not the first match, so emitted branches are now compiled mutually exclusive — each branch’s expression AND-s on the negation of every earlier branch (by comparison-flipping joined withor; the expression grammar has nonot). - Unconditional conditional branches (
when = {}fallbacks andinstall_source-only gates) actually apply now. They were emitted as{"true": value}, but Houdini’s expression grammar has no boolean literals — that object silently defines a stray variable namedtrueinstead. A leading unconditional branch now collapses the value to a plain (list) value, and a trailing fallback’s expression is exactly “no earlier branch matched”. In particular the canonical HDK pattern (dev-gated build path plus publisheddso/fallback) now works: a dev install gets exactly the build path, a registry install exactly the fallback. =version comparators (houdini = "=21") parse. They were documented as an alias of==but fell through to the bare-version parser and errored.- Generated package files no longer draw
WARNING: Unsupported value for requires(and friends) from Houdini. Absent optional fields are omitted instead of serialized asnull.
Changed
- Project
[runtime]entries are emitted once, in a dedicated~hpm-project-overrides.json. Houdini processes package files in byte-wise ascending filename order and~sorts after every slug character, so the overrides manifest always applies last: anappend/prependoverride lands after (or before) all package contributions and is applied exactly once, no matter how many packages declare the same variable (previously it was emitted into every declaring package’s file). Consequences: a project[runtime]entry now takes effect even when no package declares the variable, and$HPM_PACKAGE_ROOTin a project-level entry — which has no owning package — is passed through with a warning instead of being substituted against an arbitrary package.
Added
- License-free Houdini conformance test. Generates real package files
and asserts the values a real Houdini resolves, via
HOUDINI_PACKAGE_VERBOSE=1 hconfig. Auto-discovers the install ($HFS, then platform-standard locations) and skips when none is found;HPM_REQUIRE_HOUDINI=1(set in the CI check pipeline) turns the skip into a failure. A model-based property test additionally runs randomized emission output through an executable model of the verified Houdini env semantics.
[0.27.1] - 2026-07-08
Fixed
- Concurrent dev launches of the same path dependency no longer fail with
PackageInUse. Dev (path-dep) copies are now content-addressed: a copy installs into_dev/<slug>@<version>/<source-hash>/and the generated Houdini manifest pointshpaththere, instead of clearing and recopying one shared_dev/<slug>@<version>/directory in place. A rebuild writes a new hash directory while a concurrently-running Houdini keeps mapping the one it was launched from, so nothing is ever removed out from under a live process. This eliminates the WindowsERROR_ACCESS_DENIED(os error 5) hard-failure that a second open session triggered during the rebuild-then-relaunch loop, and makes overlapping dev sessions of the same package safe on all platforms. An unchanged workspace resolves to the existing hash directory and is reused untouched.
Changed
hpm cleanreclaims superseded dev copies. With copies now content-addressed, each rebuild leaves a directory behind; cleanup prunes every hash directory except the current source’s for a still-referenced install (whole containers are still removed for orphaned installs). Reclamation is best-effort and expects Houdini sessions to be closed — a copy still mapped by a live process is skipped rather than force-removed. The internal.hpm-devsrcfingerprint sidecar and content-digest freshness check are removed, superseded by the content-addressed layout.
[0.27.0] - 2026-07-07
Added
HPM_HOUDINI_MAJORSis now part of thehpm buildprepack environment. A package that builds one native artifact per Houdini major (a compiled USD resolver, say) can restrict the matrix by reading this variable: space-separated major numbers (e.g.21 22), unset/empty meaning “build the full declared matrix”.hpm buildsets it from a new--houdini-majorsflag and forwards the value verbatim without interpreting it. When the flag is omitted anHPM_HOUDINI_MAJORSalready present in the environment passes through unchanged, so an out-of-process producer (e.g. a desktop launcher that discovers the machine’s installed majors) can set it while an explicit--houdini-majorsstill overrides. This promotes the previously ad-hoc, unprefixedHOUDINI_MAJORSconvention into the first-classHPM_*build-env contract alongsideHPM_BUILD_PROFILEandHPM_PLATFORM.
[0.26.3] - 2026-07-04
Fixed
- Dev launches of a native path dependency no longer fail with
os error 5when another Houdini is open. A copy-mode path dep (including alink = truenative package, which is installed as a copy) was cleared and recopied on every sync. For a native package the copy holds the DSOs a concurrently-running Houdini has memory-mapped, so on Windows the removal step failed withERROR_ACCESS_DENIEDand surfaced as “Package<name>@<version>is in use by another process” — even when the package content was unchanged and the user simply had a sibling Houdini open. Dev copies now record a fingerprint of the source workspace (relative path + length + mtime per file) in a.hpm-devsrcsidecar; a re-sync whose source is unchanged skips the clear-and-recopy entirely, matching the “already installed” short-circuit the registry/URL specs already had. A genuinely changed workspace still recopies, and a truly loaded, changed DLL still reportsPackageInUse(you can’t overwrite a mapped binary). Linux/macOS were never affected — open files unlink cleanly there.
[0.26.2] - 2026-07-02
Fixed
- Link-mode dev installs no longer break in-place native (DSO) rebuilds.
A path dependency installed with
link = true(hpm add --path --link, or a{ path, link = true }spec) that declares concrete[compat].platforms(anything other thanuniversal) is now installed as a copy instead of a symlink/junction. Previously the junction made the workspace build output the same physical file Houdini had memory-mapped, so rebuilding the DSO/DLL while a session started from that dev install was running failed with WindowsLNK1104/ERROR_SHARING_VIOLATION. Link-mode buys nothing for native code (a mapped DSO needs a relaunch to reload regardless), so native packages are transparently copied; the rebuilt binary is picked up on the next dev launch. Pure-data / pure-Python /universal-only link installs are unaffected and keep live-edit behavior.
[0.26.1] - 2026-06-30
Changed
script_run::ScriptSinknow requiresSend(pub trait ScriptSink: Send). Lets embedders driverun_prepack/run_scriptfrom a multi-threaded executor (e.g. a Tauri application awaits the runner insidetauri::async_runtime::spawn, which requiresSend + 'staticfutures). Every real sink is alreadySend, so this is a no-op for existing implementations including the CLI’sConsolesink.
[0.26.0] - 2026-06-30
Added
- Shared
[scripts]runner inhpm-core(script_runmodule). The prepack/script-running loop that previously lived only in thehpmbinary is now a library entry point:run_prepack,run_script, andprepare_script, parameterized over aScriptSink(spawn + diagnostics). Embedders that build install images out-of-process can run a package’s scripts through the exact same env contract (HPM_PACKAGE_ROOT, per-script venv,package-env,PATH/VIRTUAL_ENV/PYTHONPATH) ashpm run/hpm build, instead of re-composing it and drifting. The CLI’shpm runandhpm buildprepack now both route through it.
Changed
- Prepack scripts now go through the full script-env composition. As a
side effect of the shared runner, table-form
[scripts]used asprepacksteps get their per-script uv interpreter onPATHlike any otherhpm runscript. No manifest or CLI-behavior change for existing packages.
[0.25.0] - 2026-06-29
Added
hpm pack --verify-assets. Fails the pack (and deletes the produced archive) when any[[operators]]sourceis missing from the archive, instead of only warning. Recommended in CI so a package never publishes an asset index that advertises a file it doesn’t ship.- Per-platform
[[operators]]source.sourcemay now be a platform-keyed table (mirroring[stage.platform.*]) as well as a single path, so a DSO operator whose binary differs per platform (.so/.dll/.dylib) declares one entry per platform. Each per-platform pack resolves and emits the concrete path for the platform it targets; operators not shipped for that platform are omitted from its index. Keys are validated against[compat].platforms.
Changed
[[operators]]hdkkind renamed todso. The kind value now names the shipped file artifact —dsoparallelshdaand matches Houdini’s owndso/plugin directory — rather than the HDK toolkit used to build it. The emitted assetkindinhpm pack --jsonchanges accordingly (hdk_operator→dso_operator). The[[operators]]index is new in 0.24.0 and not yet consumed by any registry, so this is a safe rename.
[0.24.0] - 2026-06-29
Added
- Package asset index from
hpm pack. Authors can declare the operators (node types) their package bundles in a new[[operators]]manifest array (kind = "hda"|"hdk",type_name,category, plus optionallabel,tab_submenu,icon,source).hpm pack --jsonnow emits these as anassetsarray alongside the existing checksum/signature fields, so a registry can offer node-level search (“which package ships anrbd_configureSOP?”) without ever downloading or opening an archive. Pack warns when a declaredsourcefile is missing from the produced archive. HPM uses author declarations rather than parsing HDA/DSO files because the HDA container format is officially undocumented and may change between Houdini versions, and a compiled DSO does not expose operator names offline.
Fixed
- Diagnostic logs no longer pollute stdout. Tracing output and the
hpm checkspacer lines now go to stderr, so machine-readable output is clean:hpm pack --json(and any--output json*command) emits only its JSON payload on stdout. Previously the pre-pack check logged[OK]lines and blank spacers to stdout ahead of the JSON, forcing consumers to parse the last line.
[0.23.0] - 2026-06-25
Added
- Optional
labelanddescriptionmetadata on table-form[scripts]entries. Package authors can attach a human-readable display name and a one-line summary to a script, for tools that present a package’s scripts to end users (menus, buttons, tooltips). The fields are purely informational — HPM never acts on them (hpm runignores them;hpm checkonly echoes them back) — and are omitted from round-tripped manifests when unset. Consumers fall back to the entry key whenlabelis absent.
[0.22.2] - 2026-06-16
Fixed
hpm runno longer passes script arguments with literal quotes on Windows. Forwarded args (e.g.hpm run task -- foo 1001 1010) arrived in the script’ssys.argvwrapped in extra double quotes —1001became the 6-character string"1001"— which broke any script that parses its args (int conversion,argparse, path opening). The args were quoted once for the shell and then re-escaped a second time by Rust’s command spawner, so the quotes survived into the child’s argv. The Windows command line is now built verbatim and handed tocmd /S /Cso the per-arg quoting reaches the child unchanged. Affects all script execution, includingpackage-envscripts.
[0.22.1] - 2026-06-16
Fixed
- Package archives are now byte-for-byte reproducible.
hpm packstamped each zip entry with the current time, so repacking an unchanged tree could produce a different archive — and a different checksum — whenever two packs straddled the 2-second MS-DOS timestamp boundary. This intermittently broke the determinism the package checksum relies on (it surfaced as a Windows CI test failure). Entry timestamps are now pinned to a fixed epoch.
[0.22.0] - 2026-06-16
Added
package-env = truefor[scripts]entries. A script can now opt into running inside the package’s full resolved environment instead of an isolated per-script venv.hpm run <script>then builds the same environmenthpm installmaterialises for Houdini — a merged uv venv resolved from[python_dependencies]across the project and its installed dependencies, with every package’spython/onPYTHONPATH— so a script that ships in the package (e.g. a render-farm task) can import the package and its deps without re-implementing the venv/deps/PYTHONPATH dance. The interpreter is the project’s Houdini-mapped CPython (a per-scriptpythonis ignored); anyrequirementson the entry are layered on top. Resolved read-only fromhpm.lock+ the global store, so it never fetches packages or rewrites generated Houdini manifests; runhpm installfirst.
[0.21.0] - 2026-06-15
Added
hpm registry add --if-not-exists. Adding a registry whose name already exists is still an error by default, but--if-not-existsturns that into a no-op (exit 0) so provisioning scripts can re-run safely.
Fixed
hpm installnow surfaces the real reason a dependency failed to resolve, instead of collapsing every cause into a genericFailed to sync project dependencies. The CLI prints the full error chain, so the three common failures read distinctly:- No registries configured:
Cannot install <pkg> <ver>: no package registries are configured. Run 'hpm registry add <url>' to add one.(Previously the install/sync path resolved against an empty registry set and reported a misleading “not found”.) - Package/version not found:
Failed to resolve <pkg> <ver> from registry: Version '<ver>' of package '<pkg>' not found in registry. - The full cause chain is also included in
--output jsonerror output, which previously emitted only the category label (Package error).
- No registries configured:
[0.20.0] - 2026-06-11
Added
- Build profiles for
hpm build. A second axis orthogonal to--platform, for packages whose native binaries can be built more than one way — typically an optimizedrelease(the default) and a symbol-bearingdebugvariant for attaching a debugger to an HDK plugin.hpm build --profile <name>(defaultrelease). The selected profile is exposed to[stage].prepackscripts asHPM_BUILD_PROFILE, so one script can docmake --build --config $HPM_BUILD_PROFILEinstead of duplicating per-build-type scripts. The resolved target platform is exposed alongside it asHPM_PLATFORM. Both are set only on thehpm buildprepack path, not for a standalonehpm run.- Optional
[stage.profile.<name>]manifest tables make a profile build reproducible fromhpm.toml. A profile layers its ownprepack/include/exclude/placerules onto the base[stage]:prepackreplaces the base when non-empty,include/excludeappend, and per-platformplacerules append (so e.g. thedebugprofile can ship Windows PDBs alongside the DSO). Profile platform keys validate against[compat].platformslike the base[stage.platform.*]tables. hpm pack, archive naming, and the registry format are unchanged; profile selection is a build-time concern only.
[0.19.1] - 2026-06-10
Fixed
- Houdini 20.5 now maps to Python 3.11, not 3.10. SideFX’s Houdini
20.5 platforms page states the main builds are built against Python
3.11, with a Python 3.10 build available only as a separate download.
HPM was mapping 20.5 to the alternate 3.10 interpreter, so for a stock
20.5 install it resolved dependencies and built venvs against 3.10
while the embedded interpreter was 3.11 — risking wheel/ABI mismatches
at import time inside Houdini.
map_houdini_to_python_versionnow returns 3.11 for 20.5+. Source: https://www.sidefx.com/docs/houdini/news/20_5/platforms.html
[0.19.0] - 2026-06-02
Fixed
- Project
[runtime]append/prependoverrides now combine with the package value instead of replacing it. When a project’s[runtime]override targeted a key that an installed package also declared, HPM took the project’s entry wholesale (project_override.or(pkg_entry)), dropping the package’s own contribution. This mademethod = "append"andmethod = "prepend"behave exactly likeset— picking either in the project config silently overrode the package-provided value (most visiblyPYTHONPATH). The override loop increate_houdini_package_with_pythonnow branches on the override’s method:setstill replaces, whileappend/prependemit the package’s original entry first and then the project’s entry into the generatedpackage.json, so Houdini merges them in load order with the requested method.
Changed
- Behavior change for existing projects. Any project that set an
append/prepend[runtime]override expecting it to replace the package value will now combine instead. Switch such overrides tomethod = "set"to keep the old replace behavior.
[0.18.1] - 2026-06-01
Fixed
- One corrupt cached manifest no longer wedges the whole CAS. A
package cached with an invalid platform (the real-world trigger was
macos-universal, which is not a validPlatform) madePackageManifest::from_pathreturn a parse error.StorageManager::parse_installed_packagepropagated thatErrup throughcollect_installed_packages->list_installed, aborting the entire listing. Because reconcile,hpm_list_packages, env-var discovery, and project sync/launch all funnel throughlist_installed(), a single broken cached package broke all of them — even for projects that did not depend on it. A malformed manifest is now warned and skipped (mirroring the existing not-found skip), so the rest of the store stays usable and the broken package simply will not resolve from CAS.
[0.18.0] - 2026-05-29
Added
-
Backwards-compatible reading of pre-0.16 (
Manifest 1.x)hpm.tomlfiles. The 0.16.0 “Manifest 2.0” rename ([houdini]->[compat].houdini,[env]+[dev.env]->[runtime],[native]->[compat].platforms+[stage],[scripts.platform.<os>]-> conditionalcmd) meant the new parser silently dropped the old top-level sections — a package published with the old schema would install with its Houdini range, env vars, and native placement gone. Old-format manifests are now detected and converted to the current shape on load (transparently, so installs of already-published packages keep working), with a deprecation warning pointing athpm migrate. Read-side legacy support is removed in 0.20.0 (hpm_package::LEGACY_MANIFEST_SUNSET). -
hpm migratecommand. Rewrites a pre-0.16hpm.tomlto the current schema in place, backing the original up ashpm.toml.bak.--stdoutpreviews the result without writing;--checkreports whether migration is needed (non-zero exit if so) and writes nothing — useful as a CI gate. The[native]->[stage]step is best-effort: the oldfilesglobs were filters, while[stage.platform].placerules need a destination, so the derivedtopaths are flagged for review both in the terminal and as a comment block atop the rewritten file.
[0.17.1] - 2026-05-28
Fixed
- Windows
_dev/install handling.is_link_entrypropagatedERROR_NOT_A_REPARSE_POINT(Windows error 4390) fromjunction::existsas a hard IoOp, breaking every code path that inspected aDevCopyinstall (plain directory, not a junction). Symptoms on Windows: dev installs never showed up in orphan detection (cleanup_comprehensive_reports_dev_orphans,unreferenced_dev_install_is_orphan,unresolvable_path_dep_does_not_block_cleanup), and switching a dev install from copy to link raised an IoOp instead of replacing the entry. Regression introduced when 0.17.0’sb756c36 refactor: remove silent-fallback patterns that hid bugstightened the priorjunction::exists(path).unwrap_or(false)into a propagating call — the tightening dropped a legitimate negative answer along with the failure cases. Fix: match onjunction::exists, route 4390 toOk(false), propagate everything else. Linux and macOS were never affected.
[0.17.0] - 2026-05-28
Added
hpm checkwarns when a native-binary package leaves its Houdini range unbounded above. A package declaring[compat].platformsships DSOs whose ABI is coupled to one Houdini major; an unbounded range like">=21"lets the package install cleanly on a newer Houdini and then crash at load. The warning suggests either a bounded form ("^21") or an explicit tested range (">=20.5, <22"). Pure-data / pure-Python packages (no[compat].platforms) are unaffected.hpm-clinow exposes a library target.Cli,Commands,ColorChoiceArg,OutputFormatArg,RegistryAction, and the dispatch entrypub async fn run() -> ExitCodelive inhpm_cliso integration tests and embedded hosts can drive the CLI without spawning the binary. Thehpmbinary is now a six-line#[tokio::main]wrapper.hpm_package::ValidationLevel/ValidationReportlift the soft publish-quality checks out ofhpm check.PackageManifest::validate()still returns the first structural error; the newvalidate_with(level)returns a report that separates errors from advisory warnings.Publishlevel adds warnings for missingdescription,authors,keywords, and[compat].houdini.hpm checknow consumes the report; futurehpm publishcan promote those warnings to errors.hpm_package::IoOpshared across error enums. Every IO-shaped variant inStorageError,ProjectError, andDiscoveryErrorcollapses to a singleIo(IoOp)carrying{ op, path, source }. The verbose.map_err(|e| DirectoryRead(e.to_string()))pattern is replaced byIoOp::wrap("read directory", &path, e)at call sites; the underlyingio::Erroris preserved as#[source]for chain walkers.
Changed
hpm initdefault[compat].houdiniis now"^21"(Houdini 21.x only) instead of">=20.5". The previous default left the upper bound open, which is the wrong default for any package that ships native binaries. Authors of pure-data packages can widen the range explicitly afterhpm init.PackageManifestcollection fields dropOption.dependencies,python_dependencies,runtime,registries,compat,stage, andscriptsare now bare collections / section structs with#[serde(default, skip_serializing_if = ...)]. An absent TOML section and an empty one round-trip to the same in-memory representation, which is what every caller already assumed.PackageInfo.authors,keywords, andcategoriessimilarly drop theOption<Vec<_>>wrapper. API break:PackageManifest::newnow takesauthors: Vec<String>instead ofauthors: Option<Vec<String>>; passVec::new()for the no-authors case. Callers matching on these fields no longer pattern-matchSome/None— read the collection (or section) directly and checkis_empty()/is_none()on innerOption<_>fields where they remain.[compat].platformsis nowVec<Platform>instead ofVec<String>. Unknown identifiers ("linux-arm64","macos-universal", etc.) are rejected at TOML parse time byPlatform’sTryFrom<String>rather than bubbling out of a separate validate pass.StorageManagerinstall methods renamed for clarity:install_from_path→install_into_cas,install_from_path_dev→install_as_dev_copy,install_from_path_dev_link→install_as_dev_link. The path source is the same in all three; the renames highlight the dimension that actually varies (CAS vs_dev/and copy vs link).- Type renames in
hpm-package:EnvValueSpec→EnvValue,EnvValueVariant→EnvValueBranch,WhenSelector→Condition,compile_when→compile_condition. The serde-facingwhenfield name inhpm.tomlis preserved — no manifest schema change. relative_path_to_forward_slashmoved fromhpm-core::path_utiltohpm-package::path_util. Path normalization for archive entries, content hashes, and glob matching is now part of the package-format layer; hpm-core depends on it rather than owning it.DependencyError::StorageRead(String)is nowStorage(Box<StorageError>)carrying the typed source error, andStorageError::ProjectDiscovery(String)is nowProjectDiscovery(#[from] DiscoveryError). Callers can now match on the underlying error type instead of inspecting a stringified display.
Internal
- Source files split for readability.
hpm-config/lib.rs,hpm-package/manifest.rs,hpm-core/storage.rs, andhpm-core/project.rseach grew past 1000 lines covering several independent concerns. Section types now live in per-section submodules; the parent files keep only the top-level type and its impl. No public-API change beyond the renames already listed. #[cfg(test)] mod proptest_helpers;andmod cli_validation_testsmoved to integration tests atcrates/hpm-package/tests/properties.rsandcrates/hpm-cli/tests/cli_validation.rs. The strategies and harnesses no longer compile as part of the library.
Refactor pass (post-0.16.0)
Workspace-wide consolidation pass — structural cleanup, no behavioural regressions intended. Item-by-item changes:
Removed
hpm-pythoncrate. Its only consumers werehpm-coreandhpm-cli, both internal to this workspace. Folded intohpm-coreas thehpm_core::pythonsubmodule. External callers rewriteuse hpm_python::Xtouse hpm_core::python::X. The workspace goes from five crates to four;ProjectError::PythonResolutionkeeps itsBox<dyn Error>source but the dep-graph rationale for it (avoiding anyhow in hpm-core) no longer applies..pre-commit-config.yaml. Duplicated the.githooks/pre-commitnative hook with a Python tool prerequisite. The native hook is now self-contained (nojustdependency either) and remains the one install path:git config core.hooksPath .githooks.- Unused workspace
tokio-testandthiserror-in-hpm-config deps (cargo machete).
Renamed
hpm_config::ProjectConfig→ProjectPaths, filecrates/hpm-config/src/project.rs→project_paths.rs. The type carries per-project derived paths (packages_dir,lock_file,manifest_file), not user-facing config; the new name says so.Config::load_project_config(root)→Config::project_paths(root)(noload_because it derives paths from a project root, no disk read).hpm_python::dependency→hpm_core::python::collectionandhpm_core::dependency→hpm_core::graph. Three crates each had adependency.rsmodule covering different concerns (manifest specs, Python collection, runtime graph). Renames eliminate the grep collisions;hpm_package::dependency(the foundational spec module) keeps its name.
Changed
LockErrorreshape. TheRead/Parse/Serialize/Writevariants — structurally identical toConfigError’s — collapse into a singleFile(#[from] hpm_package::TomlFileError)variant. Callers matchingLockError::Read { path, source }etc. must now matchLockError::File(TomlFileError::Io(IoOp { path, source, .. }))or similar; the underlying data is unchanged.hpm_config::ConfigErroris now a name re-export ofhpm_package::TomlFileError. The four old variants are gone for the same reason; same migration path.RegistryError::IoError(std::io::Error)andPackError::Io(io::Error)now wraphpm_package::IoOpfor consistency with the rest of the workspace’s IO error shape. Display goes from"I/O error: ..."to"failed to <verb> <path>".DependencyGraph::nodes()returnsimpl Iterator<Item = &PackageNode>instead of&HashMap<PackageId, PackageNode>. Internally backed bypetgraph::DiGraph; cycle detection switched topetgraph::algo::tarjan_sccand now reports each cycle once as an SCC.add_nodeis idempotent onPackageId; mutating an existing node goes through the newnode_mut(&id).add_dependencyfor a missing endpoint is a no-op (formerly created a phantom edges entry).ResolvedDependencySet::add_packagenow canonicalizes the name per PEP 503 on insert. Previously two paths could feedFoo-Barandfoo_barand produce two entries with two distinct content hashes (one of them mismatched against the dist-info on disk). The fix closes that latent venv-rebuild bug.
Added
hpm_package::TomlFileError— sharedRead/Parse/Serialize/Writeshape for TOML-on-disk files; consumed byConfigErrorand byLockError’sFilevariant.hpm_package::atomic_write(path, content) -> Result<(), IoOp>— stage-and-rename helper. Four pre-existing crash-safe writes (Config, LockFile, Houdini manifest, venv metadata) collapse to one implementation site.hpm_package::user_home()—$HOME/%USERPROFILE%lookup. Replaces byte-identicalpub(crate)helpers that lived in hpm-config and (formerly) hpm-python.hpm_core::python::pep503::normalize— exposed PEP 503 name canonicalization (used byadd_packageand venv presence checks).ResolvedDependencySet::from_pip_compile_output(output, py_version)— named constructor parsinguv pip compilestdout. Replaces two near-identical parsers inresolverandscript_env.hpm_cli::error::CliResultExt— extension trait with.cli_package(cmd)/.cli_network(cmd)/.cli_config(cmd)/.cli_io(cmd)that lift aResult<T, E>into aCliResult<T>with the standardUse 'hpm <cmd> --help' …hint. Fifteen identical map_err blocks in the CLI dispatch loop collapse to one method call each.
Internal
- All
#[cfg(test)] mod tests { ... }blocks longer than ~300 lines pulled into sibling<file>_tests.rsfiles, included via#[cfg(test)] #[path = "<file>_tests.rs"] mod tests;. Source files now reflect actual code surface:manifest.rs1850 → 492,storage.rs1761 → 766,project.rs1606 → 969,env_value.rs822 → 521 lines. timecrate replaces hand-rolled date math.lock.rshad ~70 lines of leap-year accounting inymd_to_days/days_to_ymd/is_leap_year. Replaced withtime::Date::from_calendar_date+OffsetDateTime::now_utc()andformat_description!..githooks/pre-commitis now self-contained (cargo fmt --checkcargo clippydirectly), nojustprerequisite. Thepre-commitrecipe in justfile stays as a manual-invocation CLI.
[0.16.0] - 2026-05-28
Manifest 2.0. Five sections of hpm.toml change shape; older manifests
will not parse. The redesign was driven by making the source/built
distinction first-class — the underlying motivation is documented in
the user guide’s [stage] and “Workflow notes” sections.
Added
-
[stage]section: how the install image is derived from the workspace. Replaces the[native]-only filter model with a more general placement model. Fields:output_dir(default"dist"),prepack(list of[scripts]entries run before staging),include/exclude(gitignore-style globs on top of.gitignoreand.hpmignore), and[stage.platform.<plat>].place = [{ from, to }]per-platform placement rules. Eachfromis a workspace-relative glob;tois either a directory (ends with/, basename appended) or a literal archive path. Useful for HDK plugins whose.dyliblives atbuild/Release/foo.dylibin the workspace but should ship atdso/macos-aarch64/foo.dylib. See[stage]in the user guide. -
hpm buildcommand. Materialises the install image into a directory. Runs[stage].prepackscripts in sequence, then copies workspace files into the output dir using the same ruleshpm packapplies.--output <dir>overrides[stage].output_dirper invocation — users running multiple Houdini sessions in parallel point each at its own--output <tmpdir>, so rebuilding one session’s image never fights another session’s loaded DSOs on Windows. Other flags:--platform,--no-prepack,--no-clean. -
[compat].platformsfield. Declares the platforms this package supports.[stage.platform.<plat>]entries must reference a platform listed here. -
install_sourceaxis on[runtime]conditional variants. Filters a branch by install context:"dev"matches path-installed packages,"registry"matches registry/URL installs, absence matches both. The axis is hpm-side: branches gated to a non-matching install source are filtered out before the Houdini package.json is generated, so they never appear in the runtime expression.
Changed
-
[houdini]→[compat].houdini. Themin_version/max_versionpair collapses into a single Cargo-style range string (">=20.5","^21",">=20.5, <22"; bare versions alias caret). Same grammarwhen = { houdini = ... }already used inside conditional[runtime]values, so the manifest now speaks one Houdini-version vocabulary. Python ABI selection extracts the lower bound. CLI:--houdini-min/--houdini-maxcollapse into--houdini <range>. -
[env]+[dev.env]→[runtime]. A single table. The dev/registry distinction now lives on thewhen.install_sourceaxis of each conditional variant. A typical HDK pattern:[runtime.HOUDINI_DSO_PATH] method = "prepend" value = [ { when = { install_source = "dev" }, set = "$HPM_PACKAGE_ROOT/build/Release" }, { when = {}, set = "$HPM_PACKAGE_ROOT/dso" }, ] -
[native]→[stage]. Per-platform filtering moves into[stage.platform.<plat>].placerules with explicitfrom/topaths. The platforms list moves to[compat].platforms. -
[scripts.platform.<os>]→ conditionalcmdinside the script entry. Per-host script variation uses the samewhen-grammar as[runtime], restricted to theosaxis:[scripts.register] cmd = [ { when = { os = "windows" }, set = "tool.exe register" }, { when = {}, set = "tool register" }, ]Other axes on a script
whenare rejected at manifest validate time — HPM has no Houdini-version or Python context athpm runtime.
Removed
[houdini]section. Use[compat].houdini.[env]and[dev.env]tables. Use[runtime]withinstall_sourceon conditional variants.[native]section. Use[compat].platformsand[stage].[scripts.platform.<os>]sub-tables. Use conditionalcmdvalues on individual script entries.HoudiniConfig,NativeConfig,NativePlatformFiles,DevSection, andPlatformScriptstypes are gone from the public API. The replacements areCompatConfig,StageConfig,PlatformStaging,StagePlatformRules, andPlaceRule.ScriptEntry::cmd() -> &str. Conditional entries need a host OS to resolve; useScriptEntry::resolve_cmd(host_os)instead.--houdini-minand--houdini-maxflags onhpm init. Use--houdini <range>.
Migration
As of the Unreleased section above, old-format manifests are read
automatically and hpm migrate rewrites them to the new shape; this
note stands for the 0.16.0–0.17.1 window, where migration was manual.
Each section’s rewrite is mechanical:
| Old | New |
|---|---|
[houdini] min_version = "20.5" | [compat] houdini = ">=20.5" |
[env] entry + [dev.env] entry on the same key | One [runtime] entry whose conditional value has one variant per install_source. |
[native] platforms = [...] + [native.<plat>] files = [...] | [compat] platforms = [...] + [stage.platform.<plat>] place = [{ from, to }]. |
[scripts.platform.<os>] name = "cmd" | [scripts.<name>] cmd = [{ when = { os = "<os>" }, set = "cmd" }]. |
[0.15.0] - 2026-05-27
Added
[dev.env]table inhpm.tomlfor dev-only environment contributions. Mirrors the[env]value shape (flat string, conditional{ when, set }variants,$HPM_PACKAGE_ROOTsubstitution, per-OS / per-Houdini-version gating) but only fires when the package is loaded via a path dependency ({ path = "..." }or{ path = "...", link = true }). Motivating case: HDK plugin development, where a package’s build output lives in its own source tree butHOUDINI_DSO_PATH = "$HPM_PACKAGE_ROOT/build/Release"is a personal-machine path that must not ship in the published archive’s Houdini manifest. Precedence (highest first): project-level[env]override, package[dev.env](only when dev-installed), package[env]. Replacement semantics for shared keys —[dev.env]substitutes for the matching[env]entry rather than emitting both. Inert for any install resolved from the registry CAS, so the table stays in the publishedhpm.tomlwithout leaking into downstream Houdini manifests.
[0.14.1] - 2026-05-22
Changed
- Per-platform test execution in release pipelines. The Woodpecker
build-{linux,macos,windows}.ymljobs are now split into three steps —build → test → upload— socargo test --release --workspaceruns on each platform before any artifact is uploaded to GitHub Releases. Previously only the Linuxcheckjob ran the test suite, so platform-specific regressions (e.g. the Windows junction bug above) could ship in a release without ever being exercised. macOS tests run against the x86_64 host slice only; aarch64 stays cross-compile-only.
Fixed
- Repeated dev-link installs no longer fail on Windows with
ERROR_ALREADY_EXISTS(os error 183).remove_dev_linkpreviously calledjunction::deletealone, which strips the reparse point but leaves the now-empty directory stub in place — the nextjunction::createat the same path then failed because the entry already existed. The Windows branch now followsjunction::deletewithstd::fs::remove_dirso the path is fully free for the next link. Manifested as a sync failure on every second-and- onward project launch with alink = truepath dep; the only workaround was deleting~/.hpm/packages/_dev/<slug>@<version>between launches.
[0.14.0] - 2026-05-20
Added
- Garbage collection for dev (
_dev/) installs.hpm clean(andhpm clean --comprehensive) now sweeps stranded entries in~/.hpm/packages/_dev/. The_dev/subtree was previously invisible to orphan collection because it’s filtered out oflist_installed, so removing a{ path = "..." }dep fromhpm.tomlleft its snapshot or link entry behind forever. A new parallel cleanup pass walks every discovered project’s path-dependencies, reads each source manifest for its(slug, version), and treats anything in_dev/outside that union as orphan. Link installs are unlinked safely via the existingremove_install_entryprimitive (noremove_dir_alltraversal into a workspace). Projects with an unresolvable path-dep source log a warning and don’t block cleanup.ComprehensiveCleanupResultgains aremoved_dev_installs: Vec<String>field whose entries are prefixed_dev/<slug>@<version>so CLI output keeps the two cleanup scopes distinct. - Link-mode installs for path dependencies. A new opt-in
link = trueon[dependencies] my-dep = { path = "...", link = true }installs the package into~/.hpm/packages/_dev/<slug>@<version>/as a symlink (Unix) or NTFS junction (Windows) instead of copying. Working-tree edits to.apex/.hda/.py/.shelffiles are picked up by a live Houdini session immediately, with no re-sync needed. Junctions (vs NTFS directory symlinks) are used on Windows because they don’t require Developer Mode or admin. Surfaced throughhpm add --path <dir> --link. The legacy snapshot-copy behavior remains the default for path deps so existing manifests are unaffected.
Fixed
- Symlink-aware target removal in
StorageManager::install_from_path_*andremove_package. Both removal paths now distinguish link entries from real directories viasymlink_metadata(plusjunction::existson Windows) and remove symlinks/junctions throughremove_file/junction::deleterather thanremove_dir_all. Prevents the catastrophic case where a stale Windows junction at a package path would have causedremove_dir_allto recurse into and delete the user’s workspace on the next sync or orphan-cleanup. Defensive even without link mode, since a junction could have been created out-of-band.
[0.13.0] - 2026-05-15
Changed
- Platform identifiers aligned with the registry API.
Platformnow carries arch-suffixed variants —linux-x86_64,linux-aarch64,macos-x86_64,macos-aarch64,windows-x86_64,windows-aarch64— plus an OS-agnosticuniversal, matching the registry’sbuild.platformenum verbatim.hpm pack --platformand the[native].platformslist inhpm.tomlaccept any of these.Platform::current()reports the arch-suffixed variant for the host, so auto-detect on Apple Silicon now returnsmacos-aarch64instead of the old fat-binary identifier.
Removed
macos-universalplatform identifier. The legacy hpm-only “fat binary” tag was dropped — the API rejects it, and the newmacos-x86_64/macos-aarch64(oruniversalfor OS-agnostic content) cover both meanings explicitly. Existinghpm.tomlmanifests carryingmacos-universalin[native].platformsor any[native.macos-universal]section fail to parse and must be migrated to the arch-suffixed names.Platform::os_key()now returnsOption<&'static str>(NoneforUniversal).
[0.12.3] - 2026-05-14
Added
prepare_script_envandScriptEnvHandleinhpm-python. Promotes per-script venv preparation from a private helper insidehpm runto a shared, spawn-strategy-agnostic API. Given aScriptEntry, the function lazily bootstraps bundled uv, materializes the venv if needed, and returns aScriptEnvHandlethat carries the env-var mutations (VIRTUAL_ENV, prependedPATH) the caller must apply before spawning.apply_to(&mut HashMap<String,String>)folds those mutations into a caller-staged env map, so outside embedders —hpm run(shells viacmd /C/sh -c) and an embedder’s hook runner (direct-spawn viaCreateProcessW/execvp) — consume the same handle through their own spawn primitives. Plain string entries and table-form entries with neitherpythonnorrequirementsget a default no-op handle.ensure_script_venv+venv_bin_dirremain exported as lower-level escape hatches.
Changed
hpm-clirun.rsroutes its env-prep throughprepare_script_envinstead of its ownensure_script_venv_for/prepend_pathhelpers, so a manifest-handling change inhpm-pythonis picked up by every embedder without per-caller drift.
[0.12.2] - 2026-05-13
Added
ProjectManager::new_with_auth. Closes the parallel gap to the 0.12.1RegistrySet::from_configs_with_authwork:ProjectManagerbuilds its ownRegistrySetinternally insidesync_dependenciesandresolve_and_install_from_registry, and those previously went through the no-auth constructors regardless of how the embedder built its own registry sets. For visibility-gated registries (an API registry that shows private packages only to signed-in callers), that meant a desktop pre-flight could resolve a PRIVATE dep correctly via an authenticated set, thenhpm install’s Simple/Registry → registry-lookup branch would fire its own anonymousget_versionfor the same dep and 404. The new constructor stashes anOption<String>on the manager; both internal sites now build theirRegistrySetviafrom_configs_with_auth(..., self.auth_token.as_deref()).ProjectManager::newbecomes a one-line delegate withNone, so existing callers (hpm-cli, every other embedder) keep working as anonymous. Token semantics mirror the registry variant: callers tracking a refreshing token rebuild theProjectManagerper operation. Static-token API onRegistrySetand onProjectManageris now a matched pair.
[0.12.1] - 2026-05-13
Added
ApiRegistry::with_auth_tokenandRegistrySet::from_configs_with_auth. Embedded callers can now build a registry set that attachesAuthorization: Bearer <token>to every API-registry request. Required for visibility-gated registries: server-side, such a registry shows anonymous callers only PUBLIC packages, so an org member trying to install their own org’s PRIVATE package previously got a 404 fromget_versionsand the package was silently dropped from the generatedhpm.toml. The token header is marked sensitive (reqwest won’t log it). Git registries ignore the token — there is no auth story for the git index yet. BothApiRegistry::newandRegistrySet::from_configsare unchanged (delegate to the new entry points withNone), so existing callers including the CLI keep working as anonymous.
[0.12.0] - 2026-05-13
Added
hpm updateactually does something now. The previous implementation was a placebo —find_available_updatessynthesised version numbers (format!("{}.1", current_version)),query_pypi_latestreturned a hardcoded string. Real impl: parse each registry dep’s spec assemver::VersionReq, query the registry for all versions, pick the highest non-yanked match, compare againsthpm.lock. Dry-run prints the diff (human, JSON, JSON-lines, JSON-compact). Apply rewrites the manifest spec to the resolved exact version and re-runs install. Honours--packagesfiltering, warns when a locked version has been yanked, prompts before applying unless--yes.InstallOutcomeis now part of the publichpm-coreAPI. Returned per-dep fromProjectManager::sync_dependencies, carries the install path plus the lockfile-relevantchecksum/source(bothOptionbecause CAS short-circuits don’t refetch). Library consumers that want to drive their own lockfile build can do so from these outcomes.RegistrySet::from_config(&Config)convenience constructor. Was previously a free function inside the CLI’sregistrycommand module.
Changed
ProjectManager::newnow takes anArc<Config>parameter (breaking change for library consumers). The constructor used to callConfig::load()internally, and so didresolve_and_install_from_registry/sync_dependencies— so a single embedded “install package” operation triggered three disk reads of~/.hpm/config.tomlper click, each with a[hpm_config] Loaded user configuration from …log line drowning out unrelated warnings. Callers now loadConfigonce and share it viaArc<Config>; internal methods read fromself.config.hpm-cliwas updated in lockstep: each command loadsConfigexactly once viaload_cli_config()and passes&Configdown, eliminating the redundant second load insideinstalland the third loadhpm add→installused to trigger.Configis now re-exported fromhpm-core.Config::loadsuccess path is nowdebug!, notinfo!. Embedded callers that legitimately load config once per operation no longer get a[hpm_config] Loaded user configuration from …line per call. The malformed-configwarn!is unchanged.ProjectManager::sync_dependenciesreturnsVec<(String, InstallOutcome)>instead of(). Two reasons: (1) callers (the CLI, the desktop client) can now build a lockfile from sync’s output; (2) the same call site now does parallel installs internally via aJoinSet— the parallel install path was previously duplicated inhpm-cli::commands::install.hpm installis now a thin shell overProjectManager. The command goes from 1118 lines to ~315: it loads + verifies the existing lockfile, constructs aProjectManager, callssync_dependencies, builds a fresh lockfile from the returned outcomes (backfilling short-circuited entries from the prior lockfile), and writes it.--frozen-lockfilesemantics tightened: previously the flag just skipped lockfile regeneration; nowinstallaborts when the freshly-resolved set differs from the prior lockfile.ProjectErrorvariants carry typed source chains. The stringly-typedDirectoryCreation(String),DirectoryRead(String),PackageInstallation(String),StorageRead(String),InvalidDependency(String),PythonResolution(String)were replaced with#[from]/#[source]variants:DirectoryCreation { path, source: io::Error },Storage(Box<StorageError>),Fetch(Box<FetchError>),InvalidPackageSource(PackageSourceError),NoRegistriesConfigured { name, version_req },RegistryResolution { name, version_req, source: Box<RegistryError> },NoMatchingVersion { name, version_req },PythonResolution(Box<dyn Error + Send + Sync>). Downstreammatcharms that read the oldStringpayload need rewriting against the typed variants.hpm-cli::commands::cleancollapsed 6× duplicated control flow. The dry-run / automated / interactive × packages / python / comprehensive matrix is now a(Scope, Mode)parametrisation; 401 lines down to 240, six functions down to three.hpm init --vcs=gitpropagatesgit initfailures instead of warning and reporting success. If the user asked for a VCS and git is missing or fails, the whole init fails.- Top-level
Cargo.tomlis now a pure workspace manifest. Was a hybrid[package]+[workspace]with a stubsrc/lib.rs“documentation- only crate” — removed.
Removed
hpm-resolvercrate (~2,330 lines). Claimed to be PubGrub but skipped conflict-driven clause learning (“Simplified conflict resolution”); zero external callers. The install path picks the highest matching version per package, which doesn’t need a constraint solver. Re-add when transitive resolution becomes a real requirement.hpm publishsubcommand. The body was a help blurb pointing users at the registry publishing workflow that lives elsewhere (with the registry). A command that pretends to be documentation is worse than no command.hpm clean --package <name>flag. Declared, parsed by clap, and tested, butexecute_cleannever read it — pure CLI fiction.- Fake disk-space estimates.
"Estimated disk space freed: ~NMB"wasremoved.len() * 10MBregardless of actual content.ComprehensiveCleanupResult::format_total_space_*is gone. Registry::config()trait method +RegistrySet::refresh_all(). Both had zero callers anywhere. TheRegistryConfigtype backingconfig()is also gone..hpmref/ symlink legacy sweep.install.rsused to clean up an earlier install layout that doesn’t exist anymore.ProjectError::ConfigLoadandProjectError::PackageNotFoundvariants. Both unused after the typed-error refactor.
Fixed
- Stub
hpm updateno longer lies. Even before the real implementation landed, the placebo body was replaced with abail!pointing users at the manual workaround.
[0.11.3] - 2026-05-11
Fixed
-
API registry no longer installs the wrong-platform archive when the registry returns non-canonical platform names.
ApiRegistry::get_versionpreviously comparedbuilds[].platformagainst the canonical long form ("windows-x86_64"/"linux-x86_64"/"macos-universal") with strict string equality, then fell through tobuilds.first()when no entry matched. A registry that emitted the short OS form (e.g."WINDOWS","LINUX") would silently get an arbitrary archive — on Windows hosts installing multi-platform packages, the Linux.sobuild could be unpacked instead of the Windows.dllbuild, with no error surfaced until Houdini failed to load the plugins.The selector now (1) accepts both the canonical long form and the short OS form (
"windows"/"linux"/"macos", case-insensitive), (2) treats a missingplatformfield or"universal"(case-insensitive) as a universal fallback, and (3) returns a newRegistryError::NoCompatibleBuilderror when every build is platform-tagged and none match the host — instead of silently picking the first one. Issue #3.
[0.11.2] - 2026-05-11
Tagged but not released — the check workflow failed clippy on Rust 1.95
(needless_lifetimes lint) before any platform binaries were built. The
fix and the platform-selection change ship together in v0.11.3.
[0.11.1] - 2026-05-08
Fixed
hpm packon Windows now writes ZIP entry names with/separators, as required by the ZIP spec (APPNOTE 4.4.17.1). Previously the entry name went throughPath::to_string_lossy(), which uses the OS separator — so packs produced on Windows contained entries likeconfig\.gitkeep. Most consumers tolerated this, but strict ones (e.g. SideFX hpackage upload) rejected the archive outright. Packs produced on Linux/macOS were already correct.hpm packon Windows now correctly excludes other-platform files from[native]packages. The platform filter compared manifest globs (e.g.lib/windows-x86_64/*) againstPath::to_string_lossy(), which on Windows produced backslash-separated strings the globs could not match — so platform-specific archives ended up bundling files from every platform. Packs produced on Linux/macOS were already correct.- Cached directory checksum is now host-OS-independent. The
per-package digest used by
ArchiveFetcher’s on-disk checksum cache hashedPath::to_string_lossy()of each relative entry, producing different digests on Windows vs. Unix for the same tree. Now normalized to/. Existing Windows caches are recomputed once on first access; Unix caches are unaffected.
[0.11.0] - 2026-05-06
Added
-
hpm run <script> [args...]executes[scripts]entries. SetsHPM_PACKAGE_ROOTto the manifest directory, honours[scripts.platform.<os>]overrides, and forwards trailing arguments to the script. Replaces the previous placeholder that printed “not yet implemented”. -
Per-script Python venvs.
[scripts]entries can opt into a uv-managed virtual environment by switching to the table form withcmd, optionalpython, and optionalrequirements:[scripts.setup] cmd = "python scripts/setup.py" python = "3.11" requirements = ["PySide6>=6.6"]hpm runresolvesrequirementsthrough the same uv pipeline that backs[python_dependencies], materializes a content-addressable venv at~/.hpm/venvs/<hash>/, and prepends itsbin/(orScripts/on Windows) toPATHsopythonin the command resolves to the pinned interpreter. Two scripts whosepython+requirementsresolve to the same closure share one venv. Plain string entries keep their prior behaviour. Resolves [#2].
Changed
PackageScripts.commandsandPlatformScripts.{linux,macos,windows}are nowIndexMap<String, ScriptEntry>(wasIndexMap<String, String>).ScriptEntryis an untagged enum: a bare string keeps the shorthand form, the table form carries the newpython/requirementshints.PackageManifest::resolved_scriptsandscript_forreturnScriptEntryvalues; use.cmd()to get the command string. Plain manifests are wire-compatible.
[0.10.2] - 2026-05-05
Fixed
- Project Houdini version now drives Python venv ABI. Previously HPM
derived the target Python from each dependency package’s
[houdini].min_version, so a project pinned to Houdini 22 (Python 3.13) consuming amin_version = "21.0"package would silently get a 3.11 venv — wheels resolved against 3.11 then crashed on import inside Houdini 22’s interpreter. The project’s own root-manifest[houdini].min_versionis now authoritative; per-package values describe compatibility floors only. Two or more dependency packages declaring conflictingmin_versionvalues (e.g. 21 + 22) used to fail resolution outright; with a project context they now resolve cleanly against the project’s Houdini. - Python resolution no longer hard-fails on machines without any
Python installed.
uv pip compilerequires an interpreter, and on a clean Windows install (no system Python, no managed CPython yet) it errored withNo interpreter found in virtual environments, managed installations, search path, or registry. HPM now invokesuv python install <version>ahead of resolution and venv creation, pinsUV_PYTHON_DOWNLOADS=automatic, and routes managed CPython installs into~/.hpm/uv-python/to keep them inside HPM’s tree.
Changed
hpm_python::collect_python_dependenciessignature now takesproject_houdini_version: Option<&str>as its first argument. Pass the project’s[houdini].min_versionto override per-package mapping (recommended); passNoneto keep the legacy per-package behaviour.
[0.10.1] - 2026-05-05
Added
hpm-core::packerexposes byte-based checksum and signing helpers.compute_bytes_checksum(&[u8]) -> Stringandsign_bytes(&[u8], &SigningKey) -> (String, String)join the existing path-basedcompute_archive_checksum/sign_archive(which now call through to the byte versions).SigningKeyis re-exported fromhpm_core::packerso downstream callers don’t need a directed25519-dalekdependency. Lets tooling that mutates archive bytes after pack — e.g. a SideFX upload flow, which reshapes the flathpm packarchive into hpackage’s expected{slug}.json-at-root + content-under-{slug}/layout — recompute the SHA-256 and re-sign without round-tripping through disk.
[0.10.0] - 2026-05-04
Added
[env]values can now be conditional on Houdini version, OS, or Python. Avaluemay be either a flat string (today’s case, unchanged) or an ordered list of{ when, set }variants. hpm lowers each branch into the expression-object array form that Houdini’spackage.jsondocuments, so a single archive can ship per-major resolver builds — e.g.resolver/houdini21/,resolver/houdini22/— and Houdini picks the matching one at startup.whenacceptshoudini(Cargo-style req:^21,~21.5,>=21,<22, bare-major shorthand),os(linux/macos/windows), andpython(3.11, etc.); axes combine withandand unknown keys are rejected.$HPM_PACKAGE_ROOTis substituted in each branch; any other$VARpasses through verbatim for Houdini’s own expansion. Malformed selectors fail at manifest validation time. New types inhpm-package:EnvValueSpec,EnvValueVariant,WhenSelector, plusManifestEnvEntry::loweras the single substitution-and-emit path.
Changed
hpm installnow writes to the same canonical CAS ashpm sync/ProjectManager::sync_dependencies. Previously the two commands maintained parallel storage layouts in~/.hpm/packages/—<safe_name>-<version>/(install) vs<slug>@<version>/(sync) — and several latent bugs lived in the divergence. After this change:ArchiveFetcherextracts into a staging dir at~/.hpm/fetch/, not the CAS.- URL/registry deps copy into
~/.hpm/packages/<slug>@<version>/viaStorageManager::install_from_path. - Path deps bypass the fetcher and go straight to
~/.hpm/packages/_dev/<slug>@<version>/viainstall_from_path_dev, matchingsync_dependencies’ isolation guarantees. - The per-project
<.hpm>/packages/<name>symlinks (Unix) and<name>.hpmrefreference files (Windows fallback) are gone — Houdini JSON manifests already carry absolute CAS paths. The sweep introduced earlier still cleans up these legacy entries on upgrade.
- Breaking (library API): new
hpm_core::cas_install_dir(packages_dir, name, version)returns the canonical install path (<packages_dir>/<slug>@<version>) for a lockfile dependency name.LockFile::verify_checksumsnow uses it; the existingfetcher_install_dirhelper documents itself as the staging path. - Breaking (library API):
PackageSourceis no longer an enum withUrlandPathvariants — it’s a URL-only struct{ url, version }consumed exclusively byArchiveFetcher. Path dependencies bypass the fetcher entirely now and don’t need aPackageSource. The previousPackageSource::path,PackageSource::is_url/is_path/local_path, thecache_key()helper, andseahash_simpleare gone.FetchError::PathNotFoundis removed (no longer constructible) andArchiveFetcher::fetchno longer takes a path branch.- The lockfile retains both shapes via a new
hpm_core::LockedSourceenum (Url { url, version }/Path { path }), used byLockedDependency.source. Same TOML wire format (type = "url"/type = "path") — existing lockfiles continue to deserialise.
- The lockfile retains both shapes via a new
Added
hpm_package::PackagePath— validated newtype for the canonicalcreator/slugpackage identifier. Validates kebab-case at deserialization, socreator()andslug()return&str(noOption) and downstream consumers can stop defending against malformed paths.
Changed
- Breaking (library API):
PackageInfo.pathis nowPackagePathinstead ofString.PackageManifest::newtakesPackagePath; callers can usePackagePath::new("creator/slug").unwrap()for static identifiers in tests, or propagate the parse error in production code.PackageInfo::creator()andslug()no longer returnOption. Theis_valid_package_pathandis_valid_slughelpers onPackageManifestare gone — validation lives onPackagePath. - Breaking:
InstalledPackagedrops three fields:name: String(the bare-slug shadow ofmanifest.package.path). Useinstalled.slug()orinstalled.manifest.package.slug().installed_at: SystemTime. Field was set on every construction and read nowhere; themetadata.created().unwrap_or_else(now)fallback that masked filesystem-level errors is also gone.- With
nameandinstalled_atremoved, the struct is now just{ version, manifest, install_path }.
- Breaking:
PackageSpecdropsregistry: Option<String>andPackageSpec::with_registry. Both were only set/read in tests. - Breaking:
VersionReq::newreturnsErrfor any inputsemver::VersionReq::parserejects (instead of silently storingparsed: Noneand falling back to literal string equality inmatches).VersionReq::parse(the alias fornew) is removed. - Breaking: Five string-typed
ProjectErrorvariants (ManifestRead,ManifestParse,ManifestWrite,ManifestRemoval,JsonSerialization) replaced with typed siblings:ManifestIo { op, path, source },ManifestEdit { path, source },ManifestStructure { path, message }, andHoudiniManifestSerialize { path, source }. The “no hpm.toml” pre-edit case inupdate_project_manifestnow reusesManifestLoadError::NotFound. ProjectManager.fetcheris no longerOption<ArchiveFetcher>. The “No fetcher available” arm ofProjectError::PackageInstallationis gone (it was unreachable —fetcherwas set toSome(...)at construction).- CLI commands
hpm search,hpm clean, andhpm updateno longer silently fall back toConfig::default()whenConfig::loadfails.Config::loadalready handles malformed user-config internally; these wrappers were swallowing project-config parse errors.
Fixed
hpm updatenow usesPackageManifest::from_path(one of the four spots collapsed in this release) instead of its ownread_to_string+toml::from_strboilerplate.PackageManifest::is_valid_semvernow delegates tosemver::Version::parse. The prior hand-rolled split-on-.+ parse-as-u32check rejected valid pre-release identifiers like1.0.0-alpha.1and build metadata like1.0.0+build.5, somanifest.validate()would fail on perfectly legitimate package versions. The version field onPackageInfois still aStringon the wire (matching what’s inhpm.toml); this only changes whatvalidate()accepts.ProjectManager::sync_dependenciesnow sweeps stale per-package Houdini manifests in<project>/.hpm/packages/. Previously, a<slug>.jsonwritten by a prior sync was left on disk after its slug dropped out of the dependency set (path-dep override removed, registry yank, manual edit), and Houdini kept loading the orphaned package on launch. Non-.jsonentries in the directory are not touched.StorageManager::install_from_path_devnow isolates path-installed (“dev”) packages under~/.hpm/packages/_dev/<slug>@<version>/instead of clobbering the shared registry CAS at the same(slug, version).list_installedskips the_devsubtree, so anensure_installedcache lookup from another project resolving the coordinate from a registry can no longer be silently served the dev content. The Path arm ofsync_dependenciesis the only caller; registry/URL installs continue to useinstall_from_path.hpm installnow sweeps stale entries in<project>/.hpm/packages/after writing manifests. The CLI command duplicates much ofsync_dependenciesand was missing the same sweep — a<name>.json, symlink, or.hpmrefleft over from a previous install kept loading the orphan dep on Houdini launch. Files with unrecognised extensions (e.g. user-authored README.md) are left alone.- Four call sites now use
PackageManifest::from_pathinstead of hand-rolledread_to_string+toml::from_str:discovery.rs::check_project_path,manifest_utils.rs::load_manifest,install.rs::load_package_manifest, andpack.rs. They get the same path-attachedManifestLoadErroralready used byProjectError/StorageError, anddiscovery.rsdrops its parallelDiscoveryError::ManifestRead/ManifestParse(PathBuf, String)variants in favour ofManifest(ManifestLoadError). LockFile::verify_checksumsnow actually verifies. The previous implementation looked for<packages_dir>/<name>@<version>whileArchiveFetcherextracts to<packages_dir>/<safe_name>-<version>(wheresafe_namereplaces/with-), so the inner branch never ran and every install /hpm auditreported “Package checksums verified” without comparing a single byte. The path computation now flows through a sharedfetcher_install_dirhelper, and a missing package surfaces as the newLockError::PackageMissingvariant rather than a silent skip.
[0.9.5] - 2026-05-01
Added
hpm_core::fetch_manifest(name, version, registry_set, storage)— fetch a parsedPackageManifestby(name, version)without project context. Reads from CAS when the package is already installed; otherwise resolves viaRegistrySet, downloads viaArchiveFetcher, and installs into CAS as a side effect. Pass""or"latest"as the version to resolve the highest semver across configured registries. The companionFetchManifestErrorwrapsStorageError/RegistryError/FetchErrorand is re-exported fromhpm-core. Intended for tools that need to inspect a package’s[env],[scripts], or[houdini]sections before the user installs it into a project.hpm_package::PackageManifest::from_path(path)constructor and aManifestLoadErrorenum withNotFound/Read/Parsevariants. Each variant carries the offendingPathBuf, so a corrupted or missing manifest is now reported with its source path instead of a bare TOML diagnostic. Replaces four duplicatedread_to_string+toml::from_strsites inhpm-core.
Changed
- Breaking (library API):
StorageError::ManifestRead(String)andStorageError::ManifestParse(toml::de::Error)are replaced by a singleStorageError::Manifest(ManifestLoadError)variant. Same change forFetchManifestError. Match arms on the old variants need to migrate toManifest(ManifestLoadError::{NotFound, Read, Parse} { path, .. }).ProjectErrorkeeps its existingManifestRead/ManifestParsestring variants (still used by thetoml_edit-based edit paths inupdate_project_manifestandremove_from_project_manifest) and adds aManifest(ManifestLoadError)variant for the typed-parse path.
Fixed
test_deprecated_commandsinhpm-clino longer inherits the developer’s$HOMEand read the real~/.hpm/config.toml. The test now overridesHOME/USERPROFILEto aTempDirvia a newhpm_binary_isolated()helper, so it passes regardless of whether the developer has registries configured locally.
[0.9.4] - 2026-04-30
Fixed
- Project sync no longer redundantly re-fetches and re-installs every
registry dependency. The
ensure_installedshort-circuit compared the scoped dependency name fromhpm.toml(e.g.creator/slug) againstInstalledPackage.name, which only carries the bare slug, so the lookup never matched and every sync fell through to remove-and-recopy the CAS entry. Bothensure_installedandensure_installed_from_urlnow route throughmatches_spec_name, which bridges scoped and bare forms. On Windows this also preventsos error 5aborts when a running Houdini process held open handles into a package directory that another project was about to redundantly reinstall. StorageManager::install_from_pathnow mapsPermissionDeniedfrom the pre-install removal step into a dedicatedStorageError::PackageInUsevariant with an actionable message (“close any running Houdini that depends on it and try again”) instead of leaking a rawos error 5.
[0.9.3] - 2026-04-29
Added
RegistryEntry.created_at: Option<String>(ISO 8601). Populated by API registries that emit it; git registries deserialize toNone. Lets clients surface per-version publish timestamps.
Removed
RegistryEntry.license. The field was unused by hpm-core and never populated by any registry implementation.
[0.9.2] - 2026-04-29
Fixed
ArchiveFetchernow extracts both ZIP and gzipped tar archives, dispatching on the file’s leading magic bytes (50 4B 03 04→ ZIP,1F 8B→ tar.gz) rather than assuming ZIP. Previously every fetched archive was unconditionally read as ZIP, so a registry entry whose URL pointed at a.tar.gz(e.g. produced bytar -czfin package CI) failed extraction with a misleading “Could not find EOCD” error and blocked the entire project install. The download cache key no longer carries a.zipextension since format is determined by content. Path-traversal validation runs in both extractors.
[0.9.1] - 2026-04-28
Fixed
hpm pack --platform <X>no longer drops files that are listed under multiple platforms in[native.<plat>].files. The per-platform filter previously assembled an exclude set from every other platform’s globs without consulting the target’s own globs, so a glob listed identically under all platforms (e.g. a shared install path used by every binary flavour) was excluded from every archive. The filter now treats the target’s globs as an inclusion override: a path matched by both the target and another platform is kept in the target’s archive. Distinct per-platform globs continue to behave as before.
[0.9.0] - 2026-04-27
Added
[env]entries inhpm.tomlacceptrequired = true. A package can declare an env var without avalueto mark it as a placeholder that the consuming project’s[env]must override;hpm installand project sync error out withMissingRequiredEnvwhen no value is supplied (by either the package’s default or the project override), so packages aren’t silently launched without env vars they depend on.
Changed
ManifestEnvEntry::valueis nowOption<String>(wasString) to support required-without-default placeholders. TOML manifests are backward compatible — existingvalue = "..."entries still parse — but Rust API consumers that read the field directly need to update.
[0.8.2] - 2026-04-23
Fixed
VenvManager::ensure_virtual_environmentnow treats a venv whosemetadata.jsonfails to deserialize as stale and rebuilds it, instead of propagating the parse error as a hard launch failure. This self-heals venvs written by pre-0.8 hpm (ISO 8601 timestamp strings) when launched by 0.8+ (i64 epoch seconds), without users needing to manually delete~/.hpm/venvs/<hash>/.Config::loadno longer aborts when~/.hpm/config.tomlis malformed. It warns and falls back to defaults, so a corrupted user config can be repaired with anyhpmcommand instead of requiring a manual file edit. Project.hpm/config.tomlstill fails hard.hpm install --frozen-lockfilenow fails loudly whenhpm.lockexists but can’t be parsed, instead of silently skipping checksum verification and defeating the reproducibility guarantee the flag promises.Config::save,LockFile::save, the per-package Houdini manifest writer, and venvmetadata.jsonupdates now stage writes to<path>.tmpand atomically rename into place, so a crash mid-write can’t leave a truncatedconfig.toml,hpm.lock,.hpm/packages/*.json, or~/.hpm/venvs/<hash>/metadata.json. The venv self-heal still covers any legacy truncation that slipped in before this change.
[0.8.1] - 2026-04-23
Fixed
ProjectManager::add_dependencynow resolves first-install packages through the configured registries (mirroringsync_dependencies) instead of calling a stub that always returnedPackageNotFound. Scoped names likecreator/slugare also matched correctly against already-installed packages.
Removed
StorageManager::install_package(the unimplemented stub). Callers should go throughProjectManager::add_dependencyorStorageManager::install_from_path.
[0.8.0] - 2026-04-22
Breaking Changes
- Dropped support for Houdini 19.x (Python 3.7) and Houdini 20.0–20.4
(Python 3.9). Both Python interpreters are past upstream end-of-life.
hpm installnow errors out on these versions instead of creating a venv against a dead ABI. The new minimum is Houdini 20.5. - Default
[houdini].min_versiongenerated byhpm initis now"20.5"(was"19.5"). Same for the fallback templates inhpm-package. - Removed the
hpm-errorworkspace crate. ItsHpmErrortype was never produced by any code path. Domain errors now live in their producing crate (StorageError,ResolverError,ConfigError, …) and surface throughhpm_cli::error::CliError. - Removed the
hpm_python::updatemodule and itsPythonUpdateManagerfacade.hpm updatenow callsVenvManager::ensure_virtual_environmentdirectly after resolving dependencies. The stub methods (check_python_updates,query_latest_python_version,link_package_to_venv,is_venv_used_by_other_packages) always returnedOk(false)/Ok(())and are gone. - Removed the system-
uvfallback inhpm_python::bundled. HPM now always uses its bundleduv; if the bundled binary cannot be downloaded,hpmerrors out instead of silently running against a systemuvthat may not match the expected cache layout. - Removed
unsafe { env::set_var }global mutation inhpm_python::bundled. UV environment variables are now applied per-command viastd::process::Command::env. VenvMetadata.created_at/last_usedandOrphanedVenv.created_at/last_usednow serialise as Unix-epoch seconds (i64) instead of chrono’s RFC 3339 string. Existing venv metadata files will fail to parse and should be removed; HPM will rebuild them on next use.StorageManager::cleanup_comprehensivenow takes adry_run: boolargument and replaces the oldcleanup_comprehensive_dry_runmethod.- Removed the unused
PythonError,PythonResult,RegistryProviderandRegistryClienttypes. CustomPackageProviderimpls no longer need#[async_trait]— the trait now uses native async-fn-in-trait.
Added
- Support for Houdini 22.x → Python 3.13.
[scripts.platform.<os>]sub-tables (linux/macos/windows) for per-OS overrides of package scripts. Top-level[scripts]entries still apply on every platform; platform-specific entries win for the matching host. New helpersPackageManifest::resolved_scriptsandscript_forexpose a single resolution rule for desktop / CLI / CI consumers.
Changed
map_houdini_to_python_versionerror message now lists the new supported range (20.5+, 21, 22) and explicitly names 19.x and 20.0–20.4 as EOL-dropped.Config::load()errors are now propagated inProjectManager::new,ProjectManager::sync_dependencies, and several CLI subcommands (add,install,registry …,search). Previously malformedconfig.tomlfiles were silently swallowed and replaced with defaults.Configdeserialisation now relies on#[serde(default)]on every field instead of thePartialConfig→into_config()machinery, cutting ~120 lines of boilerplate.
Security
- Picked up
rustls-webpki0.103.12+ (viacargo update) which fixes RUSTSEC-2026-0098 and RUSTSEC-2026-0099 (name-constraint bypass).
Removed (dependency cleanup)
- Dropped the following direct/indirect dependencies:
miette,owo-colors,anstream,futures,dirs,home,which,chrono,async-trait(fromhpm-resolver; retained inhpm-corewhereBox<dyn Registry>still needs it). - Transitive crate count went from 377 to 345.
[0.7.2] - 2026-04-19
Fixed
VenvManager::ensure_virtual_environmentnow self-heals venvs left half-installed by earlier hpm versions. Previously, if a pre-0.7.1 run had created a venv directory whosemetadata.jsonclaimed the packages were installed but whosesite-packages/was empty (the--targetbug), upgrading to 0.7.1 wasn’t enough —ensure_virtual_environmenttrusted the existing directory and skipped the install. It now checks that each resolved package has adist-infoinsite-packages/before reusing the venv, and deletes + rebuilds when the check fails.
[0.7.1] - 2026-04-19
Fixed
hpm installnow actually installs Python dependencies into the shared venv. The installer had been runninguv pip install --target {venv}/lib/python/site-packages— a path no real venv uses — so uv planted files where the venv’s own interpreter never looked, leaving~/.hpm/venvs/<hash>/Lib/site-packagesempty while metadata.json claimed success. Installs now useuv pip install --python {venv}/bin/python(orScripts/python.exeon Windows) and verify adist-infodirectory lands for at least one resolved package before writing metadata.VenvManager::get_python_site_packages_pathreturns the real per-version Unix layout (lib/pythonX.Y/site-packages) instead of the fictionallib/python/site-packages, so generatedPYTHONPATHentries point at a directory Python will actually import from. Callers pass the resolved Python version through.
Changed
- Updated
docs/user-guide.mdanddocs/architecture.mdto match the current Houdini manifest shape (hpath+HoudiniEnvValueprepend) and the real venv layout. The old examples showedhpm_managed/hpm_packagefields and agenerate_houdini_manifestfunction that were removed in 0.7.0.
[0.7.0] - 2026-04-19
Breaking Changes
hpm installnow errors out when[houdini]min_versionis unparseable or outside the supported range (Houdini 19/20/21) instead of silently falling back to Python 3.9. This previously masked the Houdini-21 mapping bug below.
Fixed
- Houdini 21 with
min_version = "21"(bare major) now correctly resolves to Python 3.11. Before, a bare major fell through to the default arm and produced a Python 3.9 venv, so C-extension packages (pymongo, watchdog, etc.) couldn’t load under Houdini’s Python 3.11 ABI. hpm installnow writes per-package Houdini manifests to.hpm/packages/{name}.jsonwith the shared venv’ssite-packagesprepended ontoPYTHONPATH. The previous implementation built the config in memory and discarded it, soimport qtpy(and any other declared Python dependency) failed inside Houdini despite a successful install.- Generated
PYTHONPATHentries useHoudiniEnvValue::prependand let Houdini pick the path separator, fixing the hardcoded Unix-only:/$PYTHONPATHthat emitted malformed values on Windows.
Changed
VenvManager::with_venvs_dirandPythonCleanupAnalyzer::with_venv_managerlet callers (primarily tests) route at an isolated venvs directory instead of the developer’s real~/.hpm/venvs/. Flakytest_end_to_end_python_workflowandtest_cleanup_system_comprehensivenow use tempdirs.
Removed
hpm_python::integrationmodule (generate_houdini_package_json,update_package_json_with_python,extract_python_env_from_package_json). The module produced a non-Houdini JSON shape and was only exercised by its own tests; Houdini manifest generation now lives in the install command.
[0.6.0] - 2026-04-16
Breaking Changes
hpm pack --key(andHPM_SIGNING_KEY, andsigning.key_pathin global config) now expects a PKCS#8 PEM file instead of a 32-byte raw seed. Regenerate keys withopenssl genpkey -algorithm ed25519 -out signing.pem.
Added
HPM_SIGNING_KEYaccepts inline PEM content (detected by a leading-----BEGINmarker) in addition to a file path, so CI secret stores can inject the key as a plain string without writing a temp file.- Documented the package-signing wire format in
docs/security.md: Ed25519 over the archive bytes, signature emitted as standard base64 (RFC 4648),keyId= first 8 bytes of the public key hex-encoded.
[0.5.2] - 2026-04-10
Fixed
- Generated per-package Houdini manifest
hpathnow points at the package root instead of<root>/otls, so Houdini auto-discovers convention subdirectories (desktop/,toolbar/,radialmenu/,python_panels/,viewer_states/,python3.11libs/pythonrc.py,keymaps, etc.) instead of only loading HDAs
[0.5.1] - 2026-04-05
Fixed
- Flaky CLI tests that mutated the process-wide current directory now serialize via a shared mutex, eliminating races under parallel test execution
[0.5.0] - 2026-04-05
Added
hpm packnow auto-generates a Houdini-native{slug}.jsonin the archive if one doesn’t already exist, making HPM packages directly usable by Houdini’s built-in package systemHoudiniNativePackageandHpackageMetadatatypes for representing Houdini-native package metadata
[0.4.0] - 2026-03-31
Breaking Changes
- Package identity is now a scoped path (
creator/slug) instead of a flat name PackageInfohas a new requiredpathfield andnameis now a freeform display namePackageManifest::new()requires apathparameterPackageTemplate::new()no longer takes anameparameter- Existing
hpm.tomlfiles without apathfield will fail validation
Added
- Scoped package paths: packages are identified by
creator/slug(e.g.acme/rock-tools) - Version-qualified paths use
@:creator/slug@1.0.0 PackageInfo::identifier(),creator(),slug()helper methodsPackageManifest::is_valid_package_path()andis_valid_slug()validation- Git registry index supports scoped paths (
creator/slug.jsonlayout) - API registry encodes scoped path segments individually in URLs
- Storage supports nested
creator/slug@version/directory layout
Changed
- Dependencies in
hpm.tomluse scoped paths as keys:"creator/slug" = "1.0.0" - Archive and cache filenames replace
/with-for flat naming hpm initgenerates bothpathandnamefields inhpm.toml
[0.3.2] - 2026-03-26
Fixed
- Handle platform-specific builds in registry
get_version - Make asset uploads idempotent, improve unwrap safety
[0.3.0] - 2026-03-25
Added
[native]section inhpm.tomlfor declaring platform-specific fileshpm pack --platformflag for producing per-platform archivesPlatformtype with support forlinux-x86_64,macos-universal,windows-x86_64- Auto-detection of host platform when packing native packages
platformfield on registry entries for future install-time platform selection
[0.1.0] - Initial Release
Package Management
hpm init- Package initialization with standard and bare templateshpm add- Add dependencies (registry, path sources) with version specificationshpm remove- Remove dependencies from manifesthpm install- Install all dependencies with lock file support (--frozen-lockfilefor CI)hpm update- Update dependencies to latest compatible versionshpm list- List dependencies with tree viewhpm check- Validate package configurationhpm pack- Create signed package archiveshpm clean- Remove orphaned packages and virtual environmentshpm audit- Security audit on dependencieshpm completions- Shell completion generation (bash, zsh, fish, powershell)
Dependency Resolution
- PubGrub-based resolver with conflict learning and backtracking
- Lock file (
hpm.lock) with pinned versions and checksums - Registry, path, and URL dependency sources
Python Integration
- Virtual environment isolation with content-addressable sharing
- UV-powered dependency resolution
- Automatic Python version mapping based on Houdini version
- PYTHONPATH injection via generated Houdini
package.json
Storage
- Global package storage in
~/.hpm/packages/ - Content-addressable Python venvs in
~/.hpm/venvs/ - Project-aware cleanup with orphan detection
Security
- SHA-256 checksums for package verification
- Ed25519 package signing and verification
- Pure Rust TLS (rustls) for all network communication
How Houdini loads hpm packages
Houdini finds packages by reading package files: small JSON files in the
directories it scans at startup. hpm never patches a Houdini installation.
It writes package files, and you tell Houdini where they are. This page
describes those files: the ones hpm install generates, the one hpm pack
puts in an archive, and how each behaves inside Houdini.
What hpm install writes
One file per dependency, in <project>/.hpm/packages/, named
{creator}.{slug}.json:
{
"hpath": ["/home/me/.hpm/packages/utility-nodes@1.0.0"],
"env": [
{ "PYTHONPATH": { "method": "prepend", "value": ["/home/me/.hpm/venvs/a1b2c3d4e5f60718/lib/python3.11/site-packages"] } },
{ "PYTHONPATH": { "method": "prepend", "value": ["/home/me/.hpm/packages/utility-nodes@1.0.0/python"] } },
{ "HOUDINI_SCRIPT_PATH": { "method": "prepend", "value": ["/home/me/.hpm/packages/utility-nodes@1.0.0/scripts"] } }
],
"enable": "houdini_version >= '21' and houdini_version < '22'"
}
hpathis the absolute path of the package in the store. It puts the package root onHOUDINI_PATH, so Houdini discovers the convention folders beneath it (otls/,toolbar/,desktop/,python_panels/,viewer_states/,dso/,python3.11libs/, …).envholds, in order: the shared venv’ssite-packagesonPYTHONPATH(only for a package that declares[python_dependencies]), the package’spython/folder onPYTHONPATHand itsscripts/folder onHOUDINI_SCRIPT_PATH(when those folders exist), then the package’s[runtime]entries.enableis the package’s[compat].houdinirange compiled to a Houdini expression. A Houdini outside the range skips the package silently.
method: "prepend" leaves the path separator to Houdini, so the same file
works on Unix (:) and Windows (;).
Pointing Houdini at a project
Add <project>/.hpm/packages to HOUDINI_PACKAGE_PATH in the environment
Houdini starts from.
# Linux, macOS
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" houdini
# Windows (PowerShell)
$env:HOUDINI_PACKAGE_PATH = "$PWD\.hpm\packages"
houdini
For a studio-wide setup, set the variable in your launcher. Houdini reads package files once, at startup: restart it after an install that changes them.
To confirm what Houdini resolved, without opening a session:
HOUDINI_PACKAGE_PATH="$PWD/.hpm/packages" HOUDINI_PACKAGE_VERBOSE=1 hconfig
Project installs and global installs
The two differ only in where the package file lands and what may be deleted around it:
hpm install (project) | hpm global add | |
|---|---|---|
| Package file location | <project>/.hpm/packages/ | Houdini’s user preferences packages/ |
| Loaded when | Houdini is pointed at the project via HOUDINI_PACKAGE_PATH | Every session of that Houdini version |
| Version scoping | enable expression only | enable plus a per-version directory |
Reproducible via hpm.lock | Yes | No. Global installs are user state, not project state |
| Unrecognized files in the target directory | Removed; hpm owns that directory | Left alone; hpm owns only files it recorded |
Use a project install for anything a team needs to reproduce. Use a global install for tools you want in your own everyday Houdini.
How [runtime] methods are emitted
In the generated file, prepend and append are written as single-element
JSON lists. The list form matters for them — Houdini only honors method on a custom
variable when the variable’s first definition uses a list value; with a
flat string every later entry silently overwrites the variable regardless
of its declared method.
set is emitted as a bare flat string instead (Houdini’s package system
has no set method). This is deliberate: a path-registered variable that
Houdini seeds itself — OCIO, PYTHONPATH, HOUDINI_*_PATH — is always
merge-able, so a list-form replace appends onto Houdini’s seed (you’d
get builtin;project, which breaks OCIO) instead of replacing it. A flat
string overwrites the seed cleanly and load-order-independent, which is
exactly what set promises. (A genuinely conditional set value — a
{ when, set } list — can’t be a flat string, so it falls back to the
list replace form; gate the whole package on the condition, or set such
a path variable flat, if you need the overwrite there.)
Project overrides
An install writes the project’s [runtime] entries into
a dedicated ~hpm-project-overrides.json in the project packages dir.
Houdini processes package files in byte-wise filename order and ~
sorts after every slug character, so the overrides file always applies
last — after every per-package file — and each override is applied
exactly once, no matter how many packages declare the same variable.
This also means a project [runtime] entry takes effect even when no
package declares the variable. Since a project-level entry has no owning
package, $HPM_PACKAGE_ROOT is undefined there (sync warns if a project
entry references it).
Installing an archive without HPM
The archive unzips to {slug}.json beside a {slug}/ content folder. Keep
those two together. Every path in the json is written relative to the json’s
own location — $HOUDINI_PACKAGE_PATH means the directory holding this
package file — so the pair is movable as a unit but not separable.
Given that, there are three ways to register it, none of which require editing anything:
-
Move both into a Houdini packages directory —
$HOUDINI_USER_PREF_DIR/packages,$HSITE/houdini<ver>/packages,$HOUDINI_PACKAGE_DIR, or$HFS/packages. You getpackages/{slug}.json+packages/{slug}/..., exactly where the json’s paths point. -
Keep both wherever you like and point Houdini at that folder. Put a one-line file in a packages directory:
{ "package_path": "/path/to/where/you/unzipped" }Houdini processes every package file directly in that folder, and
$HOUDINI_PACKAGE_PATHinside{slug}.jsonresolves to it. Note thatpackage_pathcannot use variables set by anyenvblock — only variables from the environment Houdini was launched with. -
Register it from the Package Browser. Drag the shipped
{slug}.jsoninto the Package Browser pane — the.json, not the.zipand not the content folder. Houdini writes a{slug}_autoload.jsoninto your packages directory that points back at the file, which behaves like option 2.
Separating the two — json in a packages directory, content somewhere else — is the only arrangement that needs the file edited, because the paths are no longer relative to anything useful. Option 2 exists to avoid exactly that.
The Package Browser’s File > Install Package Archive does not use the shipped json at all. Houdini honours a bundled package file only when it is named
<archive-stem>.json;hpm packnames the archive{slug}-{version}-{platform}.zip, so ours is not merely ignored — it is never written to disk. Only the{slug}/folder is extracted. Houdini then writes its own package file into a packages directory holdingenableandhpathonly, withhpathpointing at the extracted folder.That still loads everything Houdini finds by convention under a
HOUDINI_PATHentry —otls/,toolbar/,scripts/,python_panels/,viewer_states/, anddso/. What it cannot load is anything reachable only through a[runtime]variable, since noenvblock survives. A package whose native plugins sit in a version-keyed tree such asbin/$HOUDINI_MAJOR_RELEASE.$HOUDINI_MINOR_RELEASE/dsoloses them silently; one that keeps them in a plaindso/folder is unaffected. Verified against Houdini 21.0.729.
Dependencies in a hand-installed archive
An archive contains one package, not its dependency tree. The generated
{slug}.json lists the manifest’s [dependencies] under Houdini’s
recommends, never requires: requires is a hard gate, so a dependency
that isn’t present would make Houdini disable the package outright and it
would load nothing at all — no HDAs, no environment, no toolbar. With
recommends, Houdini instead logs
WARNING: The recommended package <dep> for <slug> is either missing,
disabled or invalid.
and loads what the archive does ship. If the package genuinely needs that
dependency at runtime, install it too — either with hpm install, which
resolves the whole tree, or by unpacking each dependency’s archive into the
same packages directory. Packages installed by HPM are unaffected: their
manifests declare neither field, because HPM has already installed every
dependency before Houdini starts.
Python environments
How hpm provides Python packages to Houdini: which Python they are built
for, how the virtual environment is put together, when it is shared, and
when it is removed. For the steps to add a dependency, see
Add Python dependencies to a package; for
the manifest syntax, see
[python_dependencies].
The problem
Houdini embeds its own Python interpreter. A package that imports numpy or requests needs those installed for exactly that interpreter’s version, without installing into Houdini itself, and without disturbing the system Python or other packages.
hpm’s answer is a virtual environment per set of resolved packages, kept
under ~/.hpm/venvs/, and put on PYTHONPATH by the package files Houdini
reads at startup. Houdini’s own Python runs the code; the environment only
supplies site-packages.
Which Python
Houdini ships one Python per release:
| Houdini | Python |
|---|---|
| 20.5 | 3.11 |
| 21.x | 3.11 |
| 22.x | 3.13 |
hpm takes the lower bound of the project’s [compat].houdini and builds
for the matching Python. ">=20.5, <22" uses 20.5; "21" and "21.0" mean
the same.
The project decides, not the packages. A package’s own [compat].houdini
says which Houdini versions it supports. If it chose the Python, a project
on Houdini 22 using a package that declares >=21 would get Python 3.11
packages, and compiled modules would fail to import in Houdini 22’s Python
3.13.
A lower bound hpm has no mapping for (>=23, >=19, or something that is
not a version) is an error at install time. Houdini 19.x and 20.0 to 20.4
are not supported; their Python versions are past end of life.
How an environment is built
During hpm install, after the packages are in the store:
- Collect
[python_dependencies]from every installed package. The same Python package declared twice must carry the identical constraint; optional entries are dropped. - Make sure a CPython of the right version exists under
~/.hpm/uv-python/, downloading it if not. - Resolve the constraints to exact versions with
uv pip compile. - Hash the Python version and the resolved
name: versionpairs. The first 16 hex characters of the SHA-256 name the environment:~/.hpm/venvs/<hash>/. - If that directory already holds every resolved package, use it. Otherwise create it and install into it.
- Record the packages that use the environment in its
metadata.json. - Add the environment’s
site-packagestoPYTHONPATHin the package file of each package that declares Python dependencies.
Resolution in step 3 runs on every install. hpm.lock does not pin Python
packages, so a loose constraint can resolve to a newer release later, which
produces a different hash and a new environment beside the old one.
Sharing
The environment’s name depends only on what was resolved, so any two projects whose packages resolve to the same set use the same directory:
Project A: numpy 2.1.3, requests 2.32.3 -> a1b2c3d4e5f60718
Project B: numpy 2.1.3, requests 2.32.3 -> a1b2c3d4e5f60718 (same directory)
Project C: numpy 2.2.0, requests 2.32.3 -> f6e5d4c3b2a19008
Extras affect the name only through the packages they pull in.
Within one project, all packages share one environment. That is why two
packages cannot ask for incompatible versions of the same Python package:
Houdini has one sys.path.
Environments for scripts
[scripts] use the same machinery outside Houdini:
- A script with
pythonorrequirementsgets an environment holding only those requirements. - A script with
package-env = trueruns in the project’s full environment: the Python dependencies of the project’s own manifest and of its installed packages, with each package’spython/folder onPYTHONPATH.
Note the difference from what Houdini gets: the project’s own
[python_dependencies] are part of the package-env environment, and not
part of the environment built for Houdini.
Isolation
hpm runs its own pinned uv, downloaded on first use to
~/.hpm/tools/uv-<version>/ and checked against a SHA-256 compiled into
hpm. Its cache, configuration and CPython builds live under ~/.hpm/ too.
A uv you installed yourself is neither used nor affected, and nothing is
installed into the system Python or into Houdini.
All of these paths follow [storage] home_dir.
Cleanup
Environments are a cache. Deleting one is always safe; the next install rebuilds it.
hpm clean --python-only and hpm clean --comprehensive remove
environments nothing uses:
- An environment that records its users is removed when none of those packages is installed any more.
- An environment with no recorded users, which is what a script’s own environment looks like, is removed once it has gone unused for 30 days.
See Keep disk usage down.
Resources
Registries
A registry is where HPM looks up package metadata — names, versions, download URLs, checksums, and dependency lists. HPM supports two flavors:
- API registries speak HTTP and serve JSON from a handful of endpoints.
- Git registries are Cargo-style indexes: a Git repository with one JSON-lines file per package.
This page covers how to add and manage registries, how HPM resolves through them, and how to configure them per user or per project. To host one, see Run a studio registry and Registry formats.
Adding a registry
hpm registry add <URL> [--name <alias>] [--type api|git] [--if-not-exists]
Examples:
# Git-index registry
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git
# API registry
hpm registry add https://registry.vendor.example/v1/registry --name vendor
# No --name: HPM infers an alias from the URL
hpm registry add https://api.vendor.example/registry
# → added as "registry"
# Idempotent add: succeed silently if a registry with this name already
# exists, instead of erroring. Useful in provisioning scripts.
hpm registry add git@git.studio.example:pipeline/hpm-index.git --name studio --type git --if-not-exists
By default, adding a registry whose name already exists is an error. Pass
--if-not-exists to treat that as a no-op (exit 0) so automated setup can
re-run safely.
This writes to ~/.hpm/config.toml:
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"
[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"
A git registry’s url may be an https://, ssh:// or file:// URL, an
scp-style git@host:path, or a local or network path to the index repository.
HPM refuses git:// and http:// (unauthenticated plaintext), the
<transport>::<address> remote-helper syntax, anything starting with -, and
a host starting with - (which ssh would read as an option),
both in config.toml and in a project’s hpm.toml. Git runs with only the
https, ssh and file transports enabled.
Listing
hpm registry list
Per-user vs per-project
Registries can be declared in two places:
- Per-user —
~/.hpm/config.toml. Managed byhpm registry add/remove/list. Applies to every project you work on. - Per-project —
hpm.tomlunder[[registries]]. Applies only to that project. Additive to per-user registries.
Per-project registries are useful when a studio wants each project to pin the registries it resolves against:
# hpm.toml
[[registries]]
name = "studio"
url = "git@git.studio.example:pipeline/hpm-index.git"
type = "git"
[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"
[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }
Every team member who clones the project gets the same registry set, without
needing to run hpm registry add themselves.
Targeting a specific registry from a dependency
By default, HPM resolves a dependency by querying every configured registry in order and taking the first match. To pin a dependency to one registry, use the detailed dependency form:
[dependencies]
"acme/rock-tools" = { version = "0.1.0", registry = "studio" }
Or from the command line, which records the pin in hpm.toml for you:
hpm add acme/rock-tools@0.1.0 --registry studio
The pin is authoritative. Resolution, install, and hpm update consult
only the named registry — there is no fallback to the rest of the set, since
falling back is exactly what a pin exists to prevent. Naming a registry that
is not configured is an error rather than a silent search elsewhere.
This is useful when:
- A package exists under the same name in multiple registries and you want to be unambiguous.
- A private registry should always win over a public one for specific packages.
- You want a dependency’s source to survive someone else adding a registry that happens to carry the same name.
Note the lock file does not record which registry a dependency came from —
it pins the version, checksum, and resolved URL. The registry key in
hpm.toml is what makes the source reproducible.
Refreshing and removing
hpm registry update # refresh every configured registry's cache
hpm registry remove studio # drop a registry from the config
hpm registry update does the right thing for each type:
- API registries: nothing to do — API registries are always queried live,
so there is no cache to invalidate. HPM reports
OK (live). - Git registries:
git pullthe index repository to pick up new packages and versions.
Run hpm registry update after a new version is published to a Git
registry. For API registries a newly published version is visible
immediately, with no refresh step.
Auto-detection of registry type
If you don’t pass --type, hpm registry add infers it from the URL:
| URL pattern | Inferred type |
|---|---|
Ends with .git | git |
Contains github.com | git |
Contains gitea | git |
| Anything else | api |
Override with --type api or --type git when the heuristic gets it wrong,
for example for a Git index on a host not named above, or a local path.
Searching
hpm search <query>
hpm search queries each configured registry in turn, in the order they
appear in the config. If no registries are configured, HPM prints a hint to
run hpm registry add and exits cleanly (emitting [] under
--output json).
With --output json, results are emitted as a JSON array suitable for
piping into other tooling:
hpm --output json search geometry | jq '.[].name'
Each entry includes the package name, version, optional description, and
optional Houdini compatibility string — one entry per version, even for a
package published for several platforms (see
Multi-platform packages). A yanked: true entry
signals that the maintainer pulled that version; HPM still shows it in search
results.
How a yank affects resolution depends on how you asked for the version:
- A range requirement (
^1,*,>=2, <3) skips yanked versions when picking the highest match. - An exact pin (
1.2.0) still resolves, yanked or not. This is deliberate, so that a lockfile pinning a version that was later yanked keeps installing rather than breaking.
Multi-platform packages
A package that declares [compat].platforms publishes one archive per
platform, and the registry stores each as its own record. HPM shows you
versions, not archives: a release built for Windows and Linux appears once
in hpm search and in any version listing, not twice.
Which archive you get is decided at install time, from the host: an exact
platform match first, then a universal build, and otherwise
NoCompatibleBuild rather than a silent fall back to some other platform’s
archive. A version that has no build for your platform still lists — you can
see it exists, and see its Houdini compatibility — it just won’t install here.
When hpm install chooses a version for a package the project does not
pin, it passes over such a version.
Use --platform on hpm pack to build for a platform other than the host;
see hpm pack.
Caching
HPM caches Git registry indexes under ~/.hpm/registry/<digest>/, where
the directory name is a digest of the registry’s remote URL. The cache is
per-remote, not per-project, so every project using the same remote shares one
clone, while two registries that share a display name but not a URL never read
each other’s index. A clone whose origin no longer matches its remote is
discarded and cloned again.
- Git cache: a local clone of the index repository. Updated by
hpm registry update. - API registries are not cached. Every resolution and search hits the
API live, so there is nothing under
~/.hpm/registry/for them.
The cache is advisory — if it’s corrupted or deleted, HPM re-fetches on the next operation. Never edit it by hand.
Security Guide
This guide covers HPM’s security features, the threat model, package signing, and operational best practices.
Integrity and reproducibility
HPM protects against tampering and drift through three layers.
SHA-256 checksums
Every package HPM installs is hashed as installed — a SHA-256 over the
installed tree’s relative paths and file contents, each framed by its length
— and the hash is recorded in hpm.lock as v2:<hex>. Lockfiles written
before this format record a bare <hex> digest of the same paths and
contents without the framing; hpm still verifies those as they are:
# hpm.lock (excerpt)
[package]
name = "acme/my-tools"
version = "1.0.0"
[dependencies."acme/utility-nodes"]
version = "1.2.0"
checksum = "v2:a3f2b8c9..."
[dependencies."acme/utility-nodes".source]
type = "url"
url = "https://packages.studio.example/utility-nodes-1.2.0.zip"
version = "1.2.0"
[metadata]
generated_at = "2026-03-14T10:30:00Z"
hpm_version = "0.40.2"
platform = "linux-x86_64"
Verification happens at two points:
- On download: the archive bytes are hashed and compared against the
registry entry’s
cksumbefore anything is extracted. A mismatch removes the corrupt cached archive and aborts the install. Registry entries without a checksum install with a warning. - On every
hpm install: each packagehpm.lockpins at the version the manifest asks for is verified against its locked checksum, whether it is freshly downloaded (before it is stored) or reused from~/.hpm/packages/. A machine that has never installed the package fetches it and verifies it the same way.
A mismatch at either point aborts with a clear error — corrupted or tampered packages never silently reach Houdini.
Lock file pinning
hpm.lock pins the exact version and a checksum of every registry and URL
package installed, including the ones installed because another package
requires them. It does not pin Python packages: it records their
constraints, and uv resolves them again on each install (see
the lock file reference). Commit it to version control. In CI, use --frozen-lockfile to fail the
build if the lock would need to change:
hpm install --frozen-lockfile
This catches three failure modes:
- The lock file is missing entirely.
- A dependency’s constraint or a registry’s contents have drifted since the lock was written.
- A registry or URL dependency is not pinned with a checksum: under
--frozen-lockfileevery one must be, so a frozen install reproduces exact bytes.
Staleness detection
Lock files include a generated_at timestamp. HPM warns on install and
audit if the lock is older than 90 days — a heuristic for “you probably
haven’t checked for security fixes in a while”. The warning is advisory; it
does not block the install.
Package signing
hpm pack can sign the archive it produces with an Ed25519 key.
hpm signs, but does not verify. Signing is a produce-only feature.
hpmemits a signature andkeyId, and the registry entry carriessig/kidfields, but no hpm install path reads or checks them — the only integrity check on download is the SHA-256 checksum. Verifying a signature is currently the responsibility of whoever consumes the artifact (your registry, your CI, or a manualopensslcheck). Everything in this section describes the wire format such an external verifier needs; none of it describes a check hpm performs on your behalf.
Wire format
| Property | Value |
|---|---|
| Signature algorithm | Ed25519 (RFC 8032). |
| Private key format | PKCS#8 PEM (a BEGIN PRIVATE KEY block). Generated by openssl genpkey -algorithm ed25519. |
| Public key format | SubjectPublicKeyInfo PEM (-----BEGIN PUBLIC KEY-----). Extracted with openssl pkey -pubout. |
| Signature encoding | Standard base64 (RFC 4648, alphabet A–Z a–z 0–9 + /, = padding). Emitted as fileSignature. Verifiers must use the standard alphabet, not base64url. |
| Key identifier | First 8 bytes of the Ed25519 public key, hex-encoded (16 characters). Emitted as keyId. Lets registries index multiple keys per creator without transmitting the full public key on every artifact. |
| Signed payload | The raw bytes of the produced .zip archive. |
Generating a key pair
openssl genpkey -algorithm ed25519 -out signing.pem
openssl pkey -in signing.pem -pubout -out signing.pub.pem
Keep signing.pem private and outside the package directory (hpm pack
refuses to package a PEM private key, or a link pointing outside the
package). Publish signing.pub.pem through your registry
or creator dashboard so consumers know what to verify against.
Signing a package
Three equivalent ways, tried in this order:
# 1. Explicit flag
hpm pack --key ~/.hpm/signing.pem
# 2. Environment variable. Either a path, or inline PEM content
# (detected by a leading "-----BEGIN" marker). The inline form is meant
# for CI systems that inject secrets as plain strings.
export HPM_SIGNING_KEY="$(cat signing.pem)"
hpm pack
# 3. Configured fallback in ~/.hpm/config.toml
# [signing]
# key_path = "/Users/me/.hpm/signing.pem"
hpm pack
The resolution order is flag → env → config. The first that’s set wins.
Output
With --json, hpm pack emits a machine-readable record suitable for CI
pipelines and registry upload tooling:
{
"archive": "dist/my-tools-1.0.0-linux-x86_64.zip",
"sha256": "a3f2b8c9...",
"signature": "base64-standard-encoded-ed25519-signature",
"key_id": "7a1c3e5f9b2d4860",
"platform": "linux-x86_64"
}
signature and key_id are present only when a signing key was supplied.
platform is present only when the manifest declares [compat].platforms.
The wire format described above — PKCS#8 PEM keys, Ed25519 signatures,
standard base64, key_id as the first 8 bytes of the public key in hex — is
pinned by a known-answer test over a fixed key and message. Ed25519 is
deterministic (RFC 8032), so a signature is reproducible byte for byte, and
an upgrade of ed25519-dalek, sha2 or base64 that changed the encoding
fails that test rather than silently invalidating every signature already
published.
Operational guidance
- Store the private PEM in a secret manager (Vault, Infisical, GitHub Actions secrets) rather than on disk in CI runners.
- Treat
keyIdas public — it leaks nothing about the private key, but anchors verification to a specific key version. - Rotate by generating a new key pair, publishing the new
keyId, and re-signing future releases. Your verifier should accept both the old and newkeyIdduring the overlap window. - A
keyIdmismatch at verification time means either the wrong public key is configured, or the signer rotated without updating the registry. Note that this check happens in your verifier — hpm does not perform it (see the note under Package signing). - A registry that stores signatures should also publish its signers’ public keys; that is the key source an external verifier resolves
keyIdagainst.
hpm audit
hpm audit
Audit runs against the current project and reports:
| Check | Emits |
|---|---|
HTTP URLs in [dependencies] (only the url = … form) | WARN per offending dependency. |
hpm.lock presence | PASS or WARN (No lock file found). |
hpm.lock staleness | PASS (recent) or WARN (Lock file is N days old) when N > 90. |
hpm.lock readable | FAIL (Failed to load lock file: ...) when it cannot be parsed. |
| Package checksum verification | PASS or FAIL (Checksum verification failed: ...). |
| Installed files against their install records | PASS (Installed files match their install records) or a FAIL per recorded file that is missing, truncated or changed. Packages installed before hpm 0.36.0 have no record and are skipped. |
HTTP URLs and a missing or stale lock are advisory warnings. A checksum
mismatch, a missing, truncated or changed installed file, or an unreadable
hpm.lock is an integrity failure: it prints FAIL and hpm audit exits 1,
so it can gate CI.
Example output:
HPM Security Audit
========================================
PASS All URLs use HTTPS
PASS Lock file exists (hpm.lock)
PASS Lock file is recent
PASS Package checksums verified
PASS Installed files match their install records
No security issues found.
Transport security
- HPM uses rustls for all HTTPS (no OpenSSL). Certificates are verified against the operating system’s trust store (through
rustls-platform-verifier), so which roots are trusted is whatever each machine trusts: a root added to a studio’s machines is trusted by HPM too. - Registry answers and package archives are fetched only over HTTPS, or plain HTTP to this machine (
localhost,127.0.0.0/8,::1) for local mirrors. Redirects follow the same rule and never step down from HTTPS to HTTP. Git registries accepthttps://,ssh://,file://,git@host:pathor a local path, nevergit://orhttp://, and never a URL or host starting with-. - TLS and checksums protect different things. A download is checked against the registry’s checksum and, when the project has a lockfile entry for that version, against the locked tree checksum. On a first resolve with no lockfile, the checksum arrives from the same registry over the same connection, so it detects corruption, not a compromised registry or a TLS-level attacker; a registry entry without a checksum installs with only a warning. Commit
hpm.lockso later installs are pinned to bytes you have already seen.
What hpm does to an archive before trusting it
A package archive comes from wherever its registry entry or URL points, so hpm treats its contents as untrusted input:
- Identity. The archive’s own
hpm.tomlmust declare the package and version that were requested. An archive claiming to be another package is refused, so it cannot occupy that package’s place in the store. - Confinement. Every entry is extracted inside the install directory.
Names with an absolute path, a drive, a
..component, a backslash, a colon or a NUL are refused, and symlink entries are skipped. - Permissions. Extracted files never receive setuid, setgid or sticky bits, or group or world write permission.
- Size. An archive may expand to at most 1,000,000 entries and 256 GiB.
- Formats. Only stored and deflated zip entries, and tar.gz, are decoded.
Names and versions from manifests, lock files and registries are checked before they are used in a path, so none of them can address a location outside the store, the cache or the staging directory.
Text from registries and manifests is printed with control characters and Unicode bidirectional controls removed, so it cannot inject terminal escape sequences.
Where hpm writes
hpm writes under ~/.hpm/, in the project’s hpm.lock and .hpm/, and,
for hpm global, one file per package in Houdini’s preferences directory.
Files and directories lists every path.
Houdini’s packages/ directory is the only one hpm writes to without
owning it. It is shared with SideFX’s files, other tools, and anything you
put there by hand. hpm therefore never scans it to decide what to delete:
writes are confined to the hpm- prefixed file for the package being
installed, and deletions to the exact file recorded in the ledger at
~/.hpm/global/houdini-{X.Y}.json.
A cloned project is untrusted too. Its .hpm/config.toml may set only
[install]; it cannot move hpm’s home, choose a signing key, or redefine
your registries. A project whose .hpm or .hpm/packages is a symlink is
refused, and a Git registry URL a project declares is validated before it
reaches git.
If you relocate the home with [storage].home_dir, pick a path that only
your user account can write. hpm does not sandbox itself against other
local users.
Best practices
Use HTTPS registries
# Good
[[registries]]
name = "vendor"
url = "https://registry.vendor.example/v1/registry"
type = "api"
# Refused — plaintext leaks names and lets attackers swap archives in flight
[[registries]]
name = "vendor"
url = "http://registry.vendor.example/v1/registry"
type = "api"
HPM refuses the second form; only a registry on this machine may use plain HTTP.
Commit hpm.lock
Treat hpm.lock like Cargo.lock or package-lock.json — check it in,
review diffs, and merge conflicts carefully.
Use --frozen-lockfile in CI
- name: Install HPM dependencies
run: hpm install --frozen-lockfile
Fails fast if the lock is missing or stale. Catches unintended resolver drift before it reaches production.
Run hpm audit in pre-release checks
Cheap, fast, and flags the easy mistakes (HTTP deps, missing or stale lock, checksum drift). Add it to your release workflow.
Review new dependencies
Before adding a dependency:
- Verify the package is from the creator you expect.
- Check the repository’s recent activity — is it maintained?
- Skim the manifest for scripts, native binaries, and
[runtime]entries that do more than you want.
HPM gives you reproducible, verifiable installs of whatever you asked for. It cannot tell you whether what you asked for is trustworthy.
Rotate signing keys periodically
Ed25519 keys don’t expire, but a key that leaked a year ago is still a leak.
Rotate at studio-appropriate cadence and publish the new keyId.
Threat model
Mitigated
| Threat | Attack vector | Mitigation |
|---|---|---|
| Cache tampering | Attacker modifies a package under ~/.hpm/packages/. | SHA-256 verification against hpm.lock before use. |
| Man-in-the-middle | Attacker intercepts a download. | TLS (HTTPS only, no downgrade on redirect). The lockfile’s checksum catches substituted bytes for a locked version; a first resolve relies on TLS alone. |
| Lockfile poisoning | Attacker rewrites hpm.lock checksums. | Install verifies packages against the lock, so a rewritten checksum fails against the real bytes; a lock rewritten to match substituted bytes is only caught in review. Review lockfile diffs in code review. |
| Swapped bytes for a locked version | Registry or mirror serves different bytes for a version the lock pins. | Install fails: fetched and stored copies must match the locked checksum. |
| Dependency drift | Same project produces different installs over time. | Exact version + checksum pinning for Houdini packages; --frozen-lockfile. Python packages are not pinned by the lock (see below). |
| Stale dependencies | Old versions with known CVEs. | 90-day staleness warnings; hpm update surfaces newer versions. |
| Replay of a vulnerable version | Registry serves an older artifact than expected. | Version and tree checksum are pinned in the lockfile; a registry answering for a different version than asked, or with different bytes for a locked version, is refused. Without a lockfile, the registry’s answer is taken as given. |
Not addressed
HPM does not protect you against:
- Malicious code in a legitimate package. If the author intends to do harm, HPM will faithfully distribute that harm.
- Unknown signer. An unknown party uploading an archive that claims to be from a creator is not something hpm detects.
hpm pack --keyproduces an Ed25519 signature andkeyId, but hpm never verifies them on install — mitigation depends entirely on a verifier your registry or CI runs. See Package signing. - Compromised upstream sources. If the registry or Git server itself is compromised, HPM trusts what it serves. Checksums pin the bytes to what the lockfile recorded, but a first-time resolve takes the registry at its word, and there is no signature check to fall back on.
- Python packages.
[python_dependencies]are resolved byuvfrom the Python package index on each install.hpm.lockpins neither their versions nor their hashes, so a new or replaced release on the index can change what is installed. Pin with==to fix versions; hpm offers no hash pinning for them. - Scripts.
hpm runand[stage].prepackexecute commands a package’s manifest declares, with your permissions.hpm installruns none of them. - Zero-day vulnerabilities in dependencies. Use your organization’s security scanning.
- Supply-chain attacks at the package author. Sign your own releases, encourage consumers to verify, and rotate on suspicion.
- Local privilege escalation on shared machines.
~/.hpm/lives in your home directory; anyone with write access to that directory can tamper. Use per-user home directories.
For these threats, layer defenses: code review, dependency scanning
(cargo-audit for Rust deps, pip-audit/similar for Python deps), and
signature verification at your registry.
Reporting vulnerabilities
Do not open a public issue for security problems. Instead:
- Open a private security advisory on GitHub.
- Include a reproducer, affected versions, and the impact you observed.
- Allow a reasonable window for a fix before public disclosure.
Security releases
Use hpm 0.40.1 or newer. 0.40.0 hardened how hpm treats cloned projects, registries and archives (most of the checks on this page), and 0.40.1 fixes a Windows regression in it. Security-relevant changes are listed under a Security heading in the changelog, and Upgrade notes lists what they require of you.
Design notes
Why hpm behaves the way it does in a few places where the behaviour is surprising until you know the reason. Nothing here is needed to use hpm; the reference pages state the rules, and this page explains them.
File modes on install
An archive’s declared Unix modes are applied as-is, with one repair. Packages
are fetched from wherever their version record points — GitHub Releases, SideFX
hpack, a studio’s own bucket — and many zip producers drop Unix modes entirely,
stamping every entry 0644. Extracting such an archive faithfully would yield a
package whose own declared programs cannot be run, failing at spawn with
Permission denied (os error 13) on macOS and Linux while working on Windows,
where executability is not a file mode.
So when an archive grants a file no execute permission but the file’s leading
bytes identify it as a program — an ELF or Mach-O object, or a #! script —
install restores the executable bit, mirroring the read bits (0644 becomes
0755, 0640 becomes 0750). The repair is additive: a mode the archive does
declare is applied untouched, and a file that is not a program is never made
executable. hpm already runs [scripts] programs out of the installed tree, so
this grants nothing a well-formed archive could not claim for itself. (A
registry archive is checked against the entry’s SHA-256 when the registry
supplies one; signatures are not verified yet, and URL dependencies are not
checked. See Security.)
The same repair reaches trees that are already installed. A package at a version
you already have is never re-extracted, so a tree installed by an older hpm
would otherwise keep its broken modes forever — upgrading hpm would appear to
change nothing. Instead, whenever hpm reuses an installed tree (install or add finding the version already present) it sweeps it once with the
rule above and records that in a <name>@<version>.exec-modes file beside the
package directory. The file lives outside the tree deliberately: a package’s
checksum is computed over its contents, so a marker inside would change it.
Two limits worth knowing. The sweep is content-driven, exactly like the
extraction repair, so it fixes any program in the tree — including a helper
binary a script shells out to — but it only ever adds execute where read is
already granted, and it will not guess at a file whose bytes don’t identify it.
(A shell script with no #! line is not rescued by any of this and cannot be:
the kernel refuses to execute it whatever its mode. Ship a shebang, or declare
an interpreter in the script’s cmd.) And a tree is swept once: if you
deliberately strip a bit afterwards, hpm will not put it back.
Symlinks in archives
Symlink entries are skipped on install. Neither the zip nor the tar.gz extractor
creates a link, and a skipped entry is logged. A link is the one entry type
that can redirect a later entry’s write outside the target directory —
validating the link’s own target would not prevent that — so refusing them is
what keeps path-traversal checking sufficient. Archives hpm pack produces
never contain one (links are resolved at pack time; see hpm pack); a third-party
archive that does will install without them, so a package must not depend on a
link existing after install.
Why a bounded range cannot be published to SideFX
hpm pack --sidefx refuses a package whose
[compat].houdini has both a lower and an upper bound. SideFX accepts one enable clause, so the natural repair is to split the
range into one object key per clause — which is also what hpackage’s own
documentation suggests. Do not. Houdini reads an object enable as a
conditional map, not a conjunction: every key whose expression matches
contributes its boolean, and when no key matches Houdini logs Unsupported value for enable and leaves the package enabled.
Measured with hconfig on 21.0.729 and 22.0.368. Against a range the running
Houdini sits above, the object form loads the package and appends its hpath
to HOUDINI_PATH; against one it sits below, it loads with the warning. A
single-key object behaves the same way, so there is no safe subset. The
equivalent string form was correctly disabled in every case.
So the multi-clause string Houdini honours is exactly the one hpackage cannot
read, and the form hpackage can read is not a gate. To publish to SideFX,
declare a single lower bound such as >=21.0. To keep an upper bound, host
the archive somewhere else — the range is unaffected there.
Architecture
Technical overview of HPM — system design, dependency resolution, cleanup, storage, and Python integration. Intended for contributors and integrators.
Table of contents
- System overview
- Crate layout
- Core types
- Dependency resolution
- Install flow
- Project-aware cleanup
- Storage architecture
- Python integration
- Security and performance
- Extension points
System overview
HPM is a modular monolith. A single binary (hpm-cli) drives a handful of
focused library crates. Responsibilities are split along stable seams:
manifest parsing, configuration, resolution, storage, Python, and errors all
live in their own crates so they can be reused (e.g., a desktop app can
depend on the library crates and skip the CLI entirely).
┌────────────────────────────────────────────────────────────────────────┐
│ CLI (hpm-cli) │
│ • subcommands: init, add, remove, install, update, list, search, │
│ run, check, build, pack, audit, clean, registry, global, │
│ completions │
│ • output formats: human, json, json-lines, json-compact │
│ • shell completions: bash, zsh, fish, powershell, elvish │
└───────────────────────────────────┬────────────────────────────────────┘
│
┌───────────────────────────────────▼────────────────────────────────────┐
│ Core orchestration (hpm-core) │
│ • StorageManager: global package install/remove/list │
│ • ProjectDiscovery: scan configured paths for active projects │
│ • LockFile / LockedDependency / PackageSource │
│ • Registry trait + ApiRegistry, GitRegistry │
│ • ArchiveFetcher, packer │
└─────────┬──────────────────┬──────────────────┬─────────────────────────┘
│ │ │
┌─────────▼────────┐ ┌───────────────┐ ┌───────────────┐
│ hpm-package │ │ hpm-assets │ │ hpm-config │
│ PackageManifest│ │ Asset │ │ Config │
│ DependencySpec │ │ AssetKind │ │ Storage/ │
│ StageConfig │ └───────────────┘ │ Projects/ │
│ Platform │ │ Signing │
│ HoudiniPackage │ └───────────────┘
└──────────────────┘
Python tooling — bundled uv, content-addressable venvs, the
Houdini→Python ABI mapping, and per-script venv resolution — lives in
hpm_core::python.
hpm-package and hpm-assets are the workspace leaves — neither depends on
another HPM crate. hpm-config depends on hpm-package (for the registry
types and the shared TOML-file error and atomic-write helpers), so it is not a leaf despite
sitting alongside them in the diagram above.
Each crate defines its own error type (e.g. StorageError, LockError)
via thiserror; hpm-config has none and returns hpm_package::TomlFileError. Errors surface to the user through CliError in hpm-cli,
which converts them to exit codes and help hints.
Key non-functional properties:
- Language: Rust, edition 2024, MSRV 1.89.
- Async runtime: Tokio, multi-thread.
- Configuration: TOML throughout (manifests, lock file, global config).
- Testing: unit, integration, and property-based (proptest) tests.
Crate layout
| Crate | Responsibility |
|---|---|
hpm-cli | Command-line frontend (clap). Turns command-line invocations into calls on the library crates. |
hpm-core | Storage, project discovery, lock file, registry trait + two implementations, archive fetching/packing, Python tooling (python submodule: bundled uv, venvs, cleanup). |
hpm-package | hpm.toml parsing and validation, dependency/Python dependency types, Houdini package.json generation, platform enum. |
hpm-assets | Operator asset-index model (Asset, AssetKind) emitted by hpm pack from [[operators]] declarations. |
hpm-config | Global and project configuration loading and merging. |
Dependencies flow downward: hpm-cli depends on everything else, hpm-core
depends on package, assets, and config, and so on. No crate depends upward.
Domain errors (StorageError, LockError, …) live in the crate that
produces them.
Core types
Selected public types. See cargo doc --workspace --no-deps --open for the
full list.
hpm-package
#![allow(unused)]
fn main() {
pub struct PackageManifest {
pub package: PackageInfo,
pub compat: CompatConfig,
pub stage: StageConfig,
pub registries: Vec<RegistryConfig>,
pub dependencies: IndexMap<String, DependencySpec>,
pub python_dependencies: IndexMap<String, PythonDependencySpec>,
pub runtime: IndexMap<String, ManifestEnvEntry>,
pub scripts: PackageScripts,
pub operators: Vec<OperatorDecl>,
}
// All collections and section structs use `#[serde(default,
// skip_serializing_if = ...)]` so an absent TOML section round-trips to
// the same in-memory representation as an empty one.
pub struct PackageScripts {
pub commands: IndexMap<String, ScriptEntry>, // flat entries under [scripts]
}
// Untagged: serialises as either a bare string ("cargo build") or a table
// form { cmd, python?, requirements?, label?, description?, package-env? }.
// The table form opts the script into
// a uv-managed venv resolved on demand by `hpm run`, and supports
// conditional cmd values via the same `when` grammar `[runtime]` uses.
pub enum ScriptEntry {
Plain(String),
WithEnv(ScriptEnv),
}
pub struct ScriptEnv {
pub cmd: ScriptCommand, // flat string or [{ when = { os }, set }, ...]
pub python: Option<PythonTag>, // e.g. "3.11"
pub requirements: Vec<String>, // e.g. ["PySide6>=6.6"]
pub label: Option<String>, // display name for UIs; hpm never acts on it
pub description: Option<String>, // one-line description for tooltips/help
pub package_env: bool, // run inside the package's full resolved env
}
pub struct PackageInfo {
pub path: PackagePath, // "creator/slug", validated kebab-case
pub name: String, // freeform display name
pub version: String, // semver
pub description: Option<String>,
pub authors: Vec<String>, // empty vec encodes "no authors declared"
pub license: Option<String>,
pub readme: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub documentation: Option<String>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
}
pub enum DependencySpec {
// The bare-string shorthand `pkg = "1.0.0"` (de)serializes as
// Registry { registry: None, optional: false }.
Registry { version: String, registry: Option<String>, optional: bool },
Url { url: String, version: String, optional: bool },
Path { path: String, optional: bool, link: bool }, // link=true → symlink/junction install
}
pub enum Platform {
LinuxX86_64, // "linux-x86_64"
LinuxAarch64, // "linux-aarch64"
MacosX86_64, // "macos-x86_64"
MacosAarch64, // "macos-aarch64"
WindowsX86_64, // "windows-x86_64"
WindowsAarch64, // "windows-aarch64"
Universal, // "universal" — OS-agnostic (pure-Python / data)
}
}
hpm-core
#![allow(unused)]
fn main() {
pub struct LockFile {
pub package: LockPackageInfo,
pub dependencies: BTreeMap<String, LockedDependency>,
pub python_dependencies: BTreeMap<String, LockedPythonDependency>,
pub metadata: Option<LockMetadata>,
}
pub struct LockedDependency {
pub version: String,
pub checksum: Option<String>, // "v2:<hex>" SHA-256 of the installed tree (tree_hash); bare <hex> in older locks
pub source: LockedSource, // Url { url, version } | Path { path }
}
#[async_trait]
pub trait Registry: Send + Sync {
async fn search(&self, query: &str) -> Result<SearchResults, RegistryError>;
// One entry per *build*, not per version — see below.
async fn get_versions(&self, name: &str) -> Result<Vec<RegistryEntry>, RegistryError>;
async fn get_version(&self, name: &str, version: &str) -> Result<RegistryEntry, RegistryError>;
async fn refresh(&self) -> Result<(), RegistryError>;
fn name(&self) -> &str;
}
}
A RegistryEntry is one published archive, so a version released for
Windows and Linux is two entries differing in dl, cksum and platform.
The trait deliberately exposes them all: get_version picks the host’s with
select_build_for_host, and it needs the full set to choose from.
RegistrySet::get_versions and RegistrySet::search are the version views
on top of that. They collapse each (name, version)’s builds to a single
entry — the host’s build, then a universal one, then the first row — so a
version picker shows a two-platform release once rather than twice, and
highest_matching (which compares version strings and nothing else) resolves
an unpinned range to an archive this host can actually run. A version with no
build for this host still lists, carrying its own metadata; deciding it is
uninstallable stays select_build_for_host’s job at install time. search
collapses per registry, so a package served by two registries still shows
both.
hpm-core::python
#![allow(unused)]
fn main() {
pub struct PythonVersion {
pub major: u8,
pub minor: u8,
pub patch: Option<u8>,
}
pub struct ResolvedDependencySet {
pub python_version: PythonVersion,
pub packages: BTreeMap<String, String>, // name → exact version
}
pub struct VenvManager { /* … */ }
impl VenvManager {
pub async fn ensure_virtual_environment(
&self,
resolved: &ResolvedDependencySet
) -> Result<PathBuf, PythonError>;
}
}
hpm-config
#![allow(unused)]
fn main() {
pub struct Config {
pub install: InstallConfig,
pub storage: StorageConfig,
pub projects: ProjectsConfig,
pub registries: Vec<RegistrySourceConfig>,
pub signing: SigningConfig,
}
pub struct StorageConfig {
pub home_dir: PathBuf, // default: $HOME/.hpm
pub cache_dir: PathBuf,
pub packages_dir: PathBuf,
pub registry_cache_dir: PathBuf,
}
}
Configuration is layered: defaults → ~/.hpm/config.toml →
<cwd>/.hpm/config.toml. Files are parsed as presence-aware overlays
(ConfigOverlay), so each layer overrides exactly the values it sets — a
file that omits a section leaves the lower layers untouched.
Dependency resolution
hpm install installs the project’s dependencies and every package their
versions require (ProjectManager::sync_dependencies_with): an exact
version is a pin, a range takes the newest version in it that fits, and
hpm add / hpm update write the version they choose back as an exact
one. The set is chosen by registry::closure::select_closed, the same loop
an application that embeds hpm runs, so the two install the same packages
for the same project. A path dependency takes part as
registry::closure::working_copy: the version its hpm.toml declares,
held like a pin, requiring that file’s registry dependencies. A package the
project does not list keeps the version hpm.lock recorded while the set
still fits it (the lock’s versions are offered as pinned supplied
packages); when it does not fit, or under SyncOptions::refresh
(hpm update), it is chosen anew, and --frozen-lockfile fails instead
(registry::closure::select_keeping).
A pinned package already in the store contributes its requirements from its
installed hpm.toml, so a project that is installed and locked syncs
without asking a registry. SyncOptions::excluded names packages the sync
must leave out unless the manifest lists them (an embedding application
passes the ones it excluded when choosing the set: switched off, or not
available to the account); a requirement on one is left unmet, so it is
never looked up, installed, locked or loaded.
Choosing which versions a set of packages should use is
hpm_core::registry::solve. A registry entry carries deps, the version
ranges that version requires of other packages (its manifest’s
[dependencies], as the registry stores them), and houdini_compat.
solve takes the registry’s version lists for a set of packages, the
target Houdini, and any pins, and returns one version per package such
that every chosen version’s deps on the others hold: a pin stands as
written, and an unpinned package takes its newest non-yanked version that
supports the Houdini and has a build for the host (or a universal one),
backtracking when that version cannot coexist with the rest. The platform
rule is install’s, and registry::has_build_for is that rule on its own for
an application that ranks versions itself: the version views list a version
with no build for the host, and a solver that chose it would fail the
install with NoCompatibleBuild even when an older version would have
installed. A requirement on a package outside the set constrains nothing;
it does not add the package.
solve_with also takes packages that are available. One of those is part
of the answer exactly when a chosen version requires it, directly or through
another available package, and it constrains nothing while it is not. A
version whose requirements cannot be met, because the required package has
no version that fits or rules that version out itself, is passed over for an
older one. registry::closure::select_closed offers the required packages,
and offers again whatever the answer’s versions require that it had not
fetched yet, until nothing is missing; where versions come from is a
VersionSource (the registries for hpm install). The choice has to be made inside
the search: adding a required package to the set and removing it when the
next answer no longer requires it can alternate between two answers and
never finish.
When no set of versions works, the error is SolveError::Conflict, and
it says in data, not only in its text, what went wrong. It names the
package the search could not place and how that package came into the set,
and for each version the package could have taken, every requirement that
rules it out against the versions selected at the time (a Cause): a
selected package that requires this one at versions this one is not, this
version requiring a selected package at versions that package is not, or
this version requiring a package that has no usable version at all. Each
selected package carries its Origin: listed by the project (and whether
pinned), or pulled in through a chain of requirements that starts at a
listed package. An application can therefore tell a user which of the
packages they listed to update or pin, even when the conflict is in a
package they never listed. The selected versions are one witness that the
package cannot be placed, not the only one.
An embedding application can write a project’s manifest from these selections, which is what keeps a release that breaks an older version of a dependent package from reaching projects on that version.
Version requirement grammar
HPM manifest values accept the usual semver constraint operators:
| Form | Meaning |
|---|---|
=1.2.3, 1.2.3 | Exact. |
^1.2.3 | Compatible with the given major (>=1.2.3, <2.0.0). |
~1.2.3 | Patch updates allowed (>=1.2.3, <1.3.0). |
>=1.0.0, <2.0.0 | Explicit range. |
Install flow
The install command itself is a thin shell — it loads the manifest +
lockfile, builds a ProjectManager, and calls sync_dependencies().
Embedding clients use the same ProjectManager entry point, so every
client runs the same flow.
┌──────────────────────────────────────────────────────────────────────┐
│ hpm install (CLI) ── ProjectManager::sync_dependencies ── │
├──────────────────────────────────────────────────────────────────────┤
│ 1. Load hpm.toml │
│ 2. If hpm.lock exists (unreadable → stop): │
│ each locked checksum is the expected tree digest: checked │
│ on the extracted archive before it reaches the store, and on │
│ a store copy before it is reused (--frozen-lockfile requires │
│ one per registry/URL package installed, required ones too) │
│ warn if metadata.generated_at > 90 days │
│ 3. Install URL deps; read path deps' hpm.toml │
│ 4. Choose the set: registry::closure::select_closed over the │
│ registry deps, path/URL deps as working copies, the lock's │
│ required versions supplied (unless refresh); a set that no │
│ longer fits the lock is chosen again unless --frozen-lockfile │
│ 5. Fetch + install in parallel (one task per package, JoinSet): │
│ Registry → query registry, chosen-version lookup │
│ → ArchiveFetcher → ~/.hpm/fetch/ │
│ → install_into_cas → ~/.hpm/packages/<slug>@<v>/ │
│ (refused unless its manifest declares the │
│ requested name and version) │
│ Url → ArchiveFetcher (no registry query) │
│ → install_into_cas │
│ Path → install_as_dev_copy (or install_as_dev_link │
│ if { link = true }) │
│ → ~/.hpm/packages/_dev/<slug>@<v>/ │
│ (real dir for copy, symlink/junction for │
│ link mode — both honor _dev/ CAS isolation) │
│ Already-in-CAS deps short-circuit (avoids the install_into_cas │
│ remove-and-recopy that breaks on Windows when Houdini is open), │
│ but still get one exec_mode::ensure_repaired sweep — nothing │
│ else ever revisits a tree installed by an older hpm. │
│ 6. Merge [python_dependencies] from every installed dep manifest │
│ (the root manifest's own are used by package-env scripts only) │
│ Python ABI = root manifest's [compat].houdini lower bound │
│ 7. Ensure managed CPython installed under ~/.hpm/uv-python/ │
│ (uv python install <ver>) — auto-downloads on clean machines │
│ 8. Resolve with bundled uv, hash the resolved set, pick or │
│ rebuild ~/.hpm/venvs/<hash>/ │
│ 9. uv pip install --python <venv>/bin/python │
│ 10. Write <project>/.hpm/packages/{creator}.{slug}.json per package │
│ 11. Sweep stale <project>/.hpm/packages/ entries │
│ 12. CLI step: build new lockfile from sync's InstallOutcomes │
│ (backfilled from the prior lockfile for short-circuited entries) │
│ and write hpm.lock │
└──────────────────────────────────────────────────────────────────────┘
A registry dependency written as a full version is a pin; a range takes
the newest version in it that fits the rest of the set (see
Dependency resolution). hpm update rewrites each
spec to the version it chose and installs with SyncOptions::refresh.
--frozen-lockfile aborts if loading the existing lockfile fails, if any
cached checksum mismatches, or if the freshly-resolved set differs from
the prior lockfile.
Project-aware cleanup
hpm clean removes packages and venvs no active project depends on. The
identity of “active projects” comes from the [projects] config section.
I = installed packages in ~/.hpm/packages/
P = active projects discovered via ProjectDiscovery
D(p) = deps declared by project p, plus every registry/URL package
p's hpm.lock records, at the locked version
T(I) = transitive closure over the dependency graph
orphans = I \ T( ⋃ D(p) )
Implementation outline:
#![allow(unused)]
fn main() {
// crates/hpm-core/src/graph.rs
impl DependencyGraph {
/// BFS from each root, returning every `PackageId` reachable along
/// dependency edges. The roots themselves are included.
pub fn mark_reachable_from_roots(&self, roots: &[PackageId]) -> HashSet<PackageId> {
let mut reachable = HashSet::new();
for root in roots {
let Some(&start) = self.index_of.get(root) else {
continue;
};
let mut bfs = Bfs::new(&self.graph, start);
while let Some(idx) = bfs.next(&self.graph) {
reachable.insert(self.graph[idx].id.clone());
}
}
reachable
}
}
}
DependencyGraph wraps a petgraph graph; its fields are private and it
exposes no orphans() of its own. Taking the set difference against what is
actually installed on disk is the cleanup plan’s orphan_packages
(crates/hpm-core/src/storage/cleanup.rs, reached through cleanup_unused
and cleanup_unused_dry_run), which calls mark_reachable_from_roots, adds
the global ledger’s roots and subtracts the result from the installed set.
Project discovery scans explicit_paths plus recursive walks of
search_roots, respecting max_search_depth and skipping directory names
that match ignore_patterns. Only directories containing an hpm.toml are
considered projects.
Python venv cleanup uses the same principle against the metadata.json files
in each venv, which list the HPM packages using that venv.
Storage architecture
Files and directories is the reference for the on-disk layout.
This section explains how the store is written. Two details of the layout
matter below: the store is keyed <slug>@<version>/ with the
.exec-modes stamp and .files.json install record beside each tree
(the package checksum covers the tree’s contents, so nothing hpm adds may
live inside it), and fetch/ is where ArchiveFetcher extracts an archive
before install_into_cas copies it into the store.
hpm install routes URL/registry deps through a two-step flow:
ArchiveFetcher downloads + extracts into ~/.hpm/fetch/,
then StorageManager::install_into_cas copies into the canonical CAS at
~/.hpm/packages/<slug>@<version>/. Path deps skip the fetcher entirely
and go straight to ~/.hpm/packages/_dev/<slug>@<version>/ via
install_as_dev_copy.
Global packages are shared across projects; each project holds only the per-dependency Houdini manifest and a lockfile. This keeps disk usage sane across a studio’s worth of projects. The Houdini JSON manifests carry absolute CAS paths, so the project tree contains no symlinks pointing into the global storage.
Each per-package manifest is named <creator>.<slug>.json. The creator
segment is part of the filename because the slug alone is not unique: two
creators may publish the same slug, and keying the file on the slug let the
second install silently overwrite the first, so Houdini loaded only one of
them. . is the separator rather than - because both segments may
themselves contain - (a-b/c and a/b-c would collide), while . is not
a legal segment character.
sync_dependencies sweeps stale per-package manifests at the end of every
install run: any .json in <project>/.hpm/packages/ whose stem is no
longer in the resolved dependency set is removed. Without this, a manifest
written by a previous run (e.g. for a path dependency that has since been removed)
would keep loading the package on Houdini launch even though hpm.toml no
longer asks for it. Manifests written by an older hpm under the bare
<slug>.json name are not in the current scheme, so the same sweep clears
them on the next install — otherwise the package would load twice, once per
filename. Note this makes <project>/.hpm/packages/ an hpm-owned directory:
unrecognized .json files placed there by hand do not survive a sync.
Global installs
hpm global writes the same Houdini manifest into Houdini’s per-user
preferences directory (hpm_core::houdini_prefs resolves it per platform,
honouring HOUDINI_USER_PREF_DIR and its __HVER__ placeholder) instead of
into a project. It reuses the whole install path — the same RegistrySet,
the same CAS, the same shared venvs, and the same manifest builder
(build_houdini_package, a free function precisely so both callers produce
byte-identical output).
The one structural difference is directory ownership, and it inverts the
sweep described above. <project>/.hpm/packages/ belongs to hpm, so the
project installer may delete anything it does not recognise there. Houdini’s
user packages/ directory belongs to the user: it holds files written by
SideFX, by other tools, and by hand. Applying the sweep there would delete
them. So global installs are tracked in a ledger at
~/.hpm/global/houdini-<X.Y>.json, and every operation is driven off it —
list reads it, remove deletes exactly the filename it records, and
nothing ever scans the directory to decide what to delete.
The ledger is also a GC root. The cleanup plan marks reachability from discovered projects, and a globally installed package belongs to no project; without its ledger entry it is unreferenced by construction, so cleanup would delete the store directory while the manifest in Houdini’s preferences kept pointing at it. An unreadable ledger aborts cleanup rather than being treated as empty — “no global installs” and “cannot tell” must not look the same to a collector.
Compatibility is checked before anything is written. The emitted enable
expression is evaluated by Houdini at startup, so a package whose
[compat].houdini excludes the target version would install successfully and
then load nothing, silently. check_compatible turns that into an install-
time error.
Path dependencies install into ~/.hpm/packages/_dev/<slug>@<version>/
rather than the registry CAS at ~/.hpm/packages/<slug>@<version>/.
The _dev subtree is invisible to list_installed, so a dev install of
foo@1.0.0 cannot be served as the cached install for a registry
resolution at the same coordinate from a different project.
_dev/ entries are garbage-collected by a parallel cleanup pass driven
directly off project path-dependencies (since the CAS-orphan logic
deliberately can’t see them). For each discovered project, dev_needs
resolves every { path = "..." } dep’s source manifest to its
(slug, version) and unions those into the “needed” set. An entry outside
it is collected: a link install is unlinked through remove_install_entry
(without traversal); a copy container is reclaimed copy by copy under the
users rule (reclaim_dev_copies: a copy a running process or recorded
project still uses is kept), and the container itself goes only once empty
(remove_empty_container). A still-needed container loses only its
superseded copies.
Path deps come in two install styles, selected by the link field on
the manifest’s { path = "...", link = ? } spec:
- Copy (default,
link = false):install_as_dev_copysnapshot-copies the workspace’s install image into a content-addressed_dev/<slug>@<version>/<source-hash>/directory (see below). The image is the file sethpm pack/hpm buildwould stage for the host platform (dev_copy_image):.gitignore+.hpmignorewith!re-includes, the[stage]include/exclude globs of thereleaseprofile, and the host’s[stage.platform.*]place rules, plushpm.tomlalways..git/, build trees and virtualenvs are never copied. The walk is the packer’scollect_stage_entries, shared with pack and build so the three cannot disagree (two files placed at one image path are refused by all three); it skips ignored directories without descending into them, but only when the ignore files have no!rules, because a!rule can re-include a file under an ignored directory (the nearest matching rule wins). Subsequent working-tree edits don’t reach the install until the nexthpm install. - Link (
link = true):install_as_dev_linkcreates a symlink (Unix) or NTFS junction (Windows) at_dev/<slug>@<version>/pointing at the canonicalized workspace. Edits are live; Houdini’s HPATH resolution follows the link transparently. Junctions on Windows side-step the Developer Mode / admin requirement that NTFS directory symlinks carry, so the workflow is viable on a stock Houdini workstation.
Native-binary packages are the exception: when a link = true path dep
declares concrete [compat].platforms (anything other than universal),
install_inner downgrades it to a copy — see
CompatConfig::declares_native_platforms. A junction/symlink would make
the workspace’s build output the very DSO/DLL a running Houdini has
memory-mapped, so an in-place rebuild fails (Windows LNK1104 /
ERROR_SHARING_VIOLATION), and link-mode buys nothing for native code
anyway — a mapped DSO can’t hot-reload into a live session; it needs a
relaunch, which re-copies and re-runs prepack. Pure-data / pure-Python /
universal-only link installs are unaffected.
Dev copies are content-addressed so a re-sync never clears a directory a
running Houdini has mapped. dev_copy_image fingerprints the staged file set
(destination path + length + mtime of every staged file, stat-only, so churn in
ignored build trees does not force a recopy) and that hash names the
install directory: the copy lands at _dev/<slug>@<version>/<source-hash>/, and
the generated Houdini manifest points hpath there. install_inner stages the
copy into a hidden .stage-<pid>-<n> directory and commits it with an atomic,
race-tolerant rename (a concurrent install that loses the race drops its stage,
since the content is identical by construction). If the target hash directory is
already present and complete, the existing install is reused untouched — the
copy-mode analogue of the “already installed” short-circuits the registry/URL
specs have in install_one_dep.
The payoff is that a rebuild produces a new hash directory rather than
overwriting the old one: a concurrently-running Houdini keeps mapping the
directory it was launched from, so install_inner never remove_dir_alls a live
copy. Before content addressing, an in-place clear-and-recopy of a package a
second session still had mapped failed on Windows with os error 5 /
StorageError::PackageInUse; that failure is now structurally impossible on all
platforms. At install time only a stale link left by a prior link = true
install is cleared (clear_container_link, link-safe); the directory of live
hashes is left in place.
A copy is kept while something uses it, and removed once nothing does
(storage::dev_users). Each user is a small record beside the copy, under
<container>/.users/<hash>/, never inside it, so an embedder that copies the
install onwards does not carry the records along:
- A project, recorded when its Houdini manifest is written with
hpathpointing at the copy. The record names the manifest, and counts for as long as that file still points there, so a later sync that repoints the manifest retires it without removing anything. - A process, recorded with its PID and the OS’s start time for it (a
recycled PID is a different process;
process_users). The install records its own process from before the copy exists until the project’s manifest points at it. Embedders record what they run against a project (hold_project_dev_copiesfor a run they wait on,record_project_processfor a detached one), because such a run can outlast the project’s next sync.
Every sync_dependencies ends by reclaiming the containers it installed into
(reclaim_dev_copies), and the same package’s other version containers
(sibling_containers), removing a version’s container once nothing is left in
it (remove_empty_container, non-recursive deletes only, so an install that
has just started keeps it). This runs on a blocking thread the sync does not
wait for, one reclaim at a time per process. A copy
is renamed to a hidden tombstone before it is deleted: on Windows a directory
with a file open inside cannot be renamed, so a copy read by a process nobody
recorded stays whole. On macOS and Linux nothing blocks the rename, which is
why the records, not the OS, are the rule. Just before the move the pass
decides again, with the records listed afresh, under the lock holds are taken
under: an install in the same process either shows there, or takes its hold
after the move, finds no copy and makes a new one. An install in another
process shares no lock, so the pass asks once more when the copy is aside,
and a claimed copy goes back. A project record matches its copy by the canonical container and the
hash, never by resolving the copy, which is not there at that moment. A
tombstone left behind (a deletion or a move back that failed) is put back
by the next pass when its copy is in use again and its place is free, and
deleted otherwise. Anything that cannot be judged (an
unreadable record, a process the OS cannot be asked about) keeps the copy.
On Windows a record or Houdini package file that reads as missing is read
again for a moment before it counts as gone, since Windows can report a file
that exists as missing. The
same pass removes the .stage-<pid>-<seq> directory a crashed or killed copy
left behind, once the process its name records is gone.
Copies made before records existed have none, and that means unknown, not
unused. The pass after a sync knows one project only and leaves them
(Unrecorded::Keep). hpm clean (cleanup_unused_dev_installs) first records
the copies every discovered project’s manifests point at, then removes the
unrecorded rest, and removes the container of a version no project depends on
once no copy in it is in use. It keeps the copy matching the current source,
so an unchanged relaunch does not recopy.
Both install replacement (clear_existing_install) and orphan cleanup
(remove_package) are symlink-safe: each checks symlink_metadata
(is_link) before choosing between remove_dir_all (real dir) and
remove_dev_link (remove_file on Unix; junction::delete plus
remove_dir on Windows), via a shared remove_install_entry primitive. Without this, a remove_dir_all
on a Windows junction would recurse into and delete the user’s workspace
on the next sync or orphan sweep.
Both styles set InstalledPackage::is_dev = true. That flag flows
through to build_houdini_package, which forwards it, as an InstallSource, to
ManifestEnvEntry::lower. The install_source axis on each
conditional [runtime] variant is filtered there: variants gated to
"dev" only survive for path-installed packages, variants gated to
"registry" only survive for registry/URL installs, and variants with no
axis fire in both contexts. A registry-fetched install whose every
matching variant is install_source = "dev" produces no entry for that
key in the generated package.json, so dev-only paths never leak to a
published consumer.
Emission targets Houdini’s actual env semantics, as verified with the
hconfig conformance harness (hpm-core/src/houdini_conformance_tests.rs)
and modeled executably in hpm-core/src/houdini_env_model.rs: prepend /
append values are single-element JSON lists (a flat-string first
definition makes a custom variable non-mergeable — every later entry
overwrites it, whatever its method), set is emitted as a bare flat
string (Houdini has no set method; a list-form replace appends onto
a path-registered variable Houdini seeded flat-first, e.g. OCIO, so only a
flat string overwrites it cleanly — a genuinely conditional set still
falls back to replace since it can’t be flat), and conditional branches
are compiled mutually exclusive because
Houdini applies every matching conditional-array element, not the first
match. Project-level [runtime] entries are written once to
~hpm-project-overrides.json in the project packages dir; Houdini
processes package files in byte-wise ascending filename order and ~
sorts after every slug character, so that file always applies last — an
override lands exactly once, after (or, for set, replacing) every
package contribution.
Python integration
The Python layer runs on four ideas, in descending order of importance:
- Content-addressable venvs. Hash the resolved dependency set, use it as the venv directory name. Same hash → same venv → shared across packages.
- Bundled uv. HPM runs one pinned
uvrelease, downloaded on first use to~/.hpm/tools/uv-<version>/and accepted only when it matches the SHA-256 compiled into HPM for that platform; a version bump installs the new release beside the old directory, and the unversioned~/.hpm/tools/uvolder HPM versions used is removed. Its cache (~/.hpm/uv-cache/), config (~/.hpm/uv-config/), and managed CPython installs (~/.hpm/uv-python/, pinned viaUV_PYTHON_INSTALL_DIR) are isolated from any systemuvso HPM never perturbs your other Python work. These paths, and the venvs, are under the configured[storage] home_dir(~/.hpmby default); in code the Python subsystem takes it as apython::PythonHome. - Self-bootstrapping Python.
uv pip compileanduv venvneed an interpreter. Before invoking either, HPM runsuv python install <ver>to ensure a managed CPython matching the project’s Houdini ABI exists. This is what makes a clean Windows install (no system Python anywhere) Just Work — without itpip compileerrors withNo interpreter found in virtual environments, managed installations, search path, or registry. The ensure step is process-cached, so it costs one fast filesystem probe per resolution. - Houdini manifest generation. For each HPM package that declares Python dependencies, HPM writes
<project>/.hpm/packages/{creator}.{slug}.jsonwithPYTHONPATHprepended at the shared venv’ssite-packages.
Hash function
ResolvedDependencySet::hash (crates/hpm-core/src/python/types.rs) is a
SHA-256 over python:<version> followed by each name:version pair,
truncated to 16 hex characters. packages is a BTreeMap, so iteration is
sorted without an explicit sort. Only names and versions are hashed; extras
are not part of the resolved set.
Houdini→Python mapping
map_houdini_to_python_version (python/collection.rs) holds the table
shown in Python environments. It is applied
to the lower bound of the root manifest’s [compat].houdini; a
dependency’s own range is not consulted. Unsupported versions return an
error rather than a fallback. Adding a Houdini major means adding an arm
there and updating the table in the user docs.
Generated Houdini manifest
How Houdini loads hpm packages shows the emitted file.
method: "prepend" delegates path-separator handling to Houdini so the same
manifest works on Windows (;) and Unix (:) without embedding an
OS-specific joiner. The generator is
hpm_core::project::houdini_emit::build_houdini_package, a free function
shared by the project installer and hpm global so both emit identical
manifests.
Security and performance
Security
- Transport: TLS through rustls (pure Rust, no OpenSSL). Certificate verification against the platform trust store. HTTPS only, or plain HTTP to this machine; redirects never step down to HTTP (
http::check_transport). - Integrity: the archive is checked against the registry’s SHA-256 when it is downloaded (a missing checksum only warns); the SHA-256 of the installed tree is recorded in
hpm.lock, and a sync verifies every package the lock pins, fetched (before it reaches the store) or reused, against it (ProjectManager::sync_dependencies_with_lock). - Signing:
hpm pack --keysigns archives with Ed25519 over PKCS#8 PEM private keys.keyId= first 8 bytes of public key, hex-encoded. See Security for the wire format. - Isolation: bundled
uvruns out-of-process with its own cache and config, never touching system state.
Performance
- Concurrent downloads: registry-fronted installs run in parallel, bounded by
[install].parallel_downloads(default 8). - Content-addressable dedup: both HPM packages (keyed by
slug@versionin the global CAS) and Python venvs (keyed by resolved-set hash) are deduplicated globally. - Cache hits:
uv’s cache eliminates wheel re-downloads across projects; HPM’s venv cache eliminates install work when a matching set is found. - Atomic filesystem ops: packages are extracted to a temp directory and renamed into place to avoid partial states.
Extension points
Programmatic configuration
The library crates can be used without the CLI. Embedders (desktop apps,
pipeline tools) build a Config in-memory by starting from
Config::default() and setting the fields they need:
#![allow(unused)]
fn main() {
use hpm_config::{Config, RegistrySourceConfig, RegistryType};
let mut config = Config::default();
config.add_registry(RegistrySourceConfig {
name: "studio".into(),
url: "git@git.studio.example:pipeline/hpm-index.git".into(),
registry_type: RegistryType::Git,
});
config.install.parallel_downloads = std::num::NonZeroUsize::new(4).unwrap();
}
Registry trait
Any type that implements the Registry async trait can be plugged into a
RegistrySet and used for resolution. The built-in ApiRegistry and
GitRegistry are reference implementations.
For visibility-gated API registries (e.g. private packages an
authenticated user is entitled to see), embedders can pass a bearer
token through RegistrySet::from_configs_with_auth — the token is
attached as Authorization: Bearer <token> on every API-registry
request and marked sensitive so reqwest won’t log it. The token is
baked into the HTTP client at construction, so callers tracking a
refreshing token rebuild the RegistrySet per operation rather than
mutating one in place. Git registries currently ignore the token.
ProjectManager mirrors that contract via
ProjectManager::new_with_auth(.., Option<String>). The token is
stashed on the manager and forwarded to every RegistrySet it builds
internally (RegistrySet::for_project, used by sync and by lock
resolution), which constructs them through from_configs_with_auth. ProjectManager::new
delegates with None, so anonymous use is unchanged. As with the
RegistrySet variant, refreshing tokens are handled by rebuilding the
ProjectManager per operation.
API Overview
This document maps HPM’s crate layout to its key public types. For full API docs with signatures and examples, generate rustdoc locally:
cargo doc --workspace --no-deps --open
Crate graph
hpm-cli binary; clap dispatch, output formatting, exit codes
├── hpm-core storage, discovery, lock, registry, fetch, pack, python
│ ├── hpm-config
│ ├── hpm-package
│ └── hpm-assets
├── hpm-config layered config loading and merging
│ └── hpm-package
├── hpm-package manifest parsing, Houdini integration, deps (leaf)
└── hpm-assets operator asset-index model for `hpm pack` (leaf)
Python tooling (bundled uv, content-addressable venvs, Houdini→Python
mapping) lives in the hpm_core::python submodule.
Leaves are hpm-package and hpm-assets — neither depends on anything in
the workspace, so they can be embedded by external tools without dragging in
the rest of HPM. hpm-config is not a leaf: it depends on hpm-package for
the registry types (RegistryType, RegistryConfig) and the shared TOML-file
error and atomic-write helpers.
Each crate defines its own error type via thiserror (e.g. StorageError,
LockError); hpm-config has none and returns hpm_package::TomlFileError.
hpm-cli converts these into a single CliError with exit codes and help
hints.
Key types by crate
hpm-core
| Type | Purpose |
|---|---|
StorageManager | Global package install/remove/list. Backed by ~/.hpm/packages/. |
ProjectDiscovery | Scans [projects] paths to enumerate active HPM projects. |
DependencyGraph | Dependency graph over PackageIds; mark_reachable_from_roots powers orphan detection for hpm clean (the set difference against what is installed is the cleanup plan’s orphan_packages in storage/cleanup.rs, reached through cleanup_unused / cleanup_unused_dry_run). |
LockFile, LockedDependency, LockedPythonDependency, LockMetadata | hpm.lock types. |
LockedSource | Origin recorded in the lockfile for each dep — Url { url, version } or Path { path }. |
LockError | File (a transparent hpm_package::TomlFileError covering read, parse, serialize and write failures), ChecksumMismatch { package, expected, actual } and PackageMissing { package, expected_dir }. |
PackageSource | URL-only struct { url, version } — what ArchiveFetcher downloads. Path deps bypass the fetcher and use LockedSource::Path in the lockfile. |
storage::StoreLayout, storage::layout::{cas_dir, download_key} | The one owner of store paths: <packages_dir>/<slug>@<version> for a registry install (a scoped creator/slug reduces to the slug), <packages_dir>/_dev/<slug>@<version> for a dev container, <cache_dir>/<download key> for an archive and <home_dir>/fetch/<download key> for its extracted staging copy. StorageManager::layout() returns it; ArchiveFetcher::for_storage builds a fetcher from it. |
Registry (async trait) | Registry abstraction. ApiRegistry and GitRegistry implement it. Note get_versions returns one entry per build, not per version — a version released for two platforms is two entries — because get_version needs the full set to pick the host’s via select_build_for_host. Callers wanting one row per version go through RegistrySet, not this trait. |
RegistrySet | Composite that fans requests out to every configured registry. *_in variants (resolve_in, get_version_in, get_versions_in) restrict the lookup to one named registry, honouring a dependency’s registry pin; an unconfigured name is UnknownRegistry rather than a fallback to the rest of the set. get_versions and search collapse each (name, version)’s per-platform builds to one entry, preferring the host’s build then a universal one — so these are version views, unlike the Registry trait method underneath. A version with no build for this host still lists (ruling it uninstallable is select_build_for_host’s job at install time, and registry::solve does not choose it for an unpinned package), and a live build always wins over a yanked one at the same version so highest_matching still sees it. search collapses per registry, so a package served by two registries still shows both. |
registry::solve, registry::solve::solve_with, HoudiniTarget, Root, Selection, Rejection, Cause, Selected, Origin, PackageVersion, SolveError | Picks one version per package so that every chosen version’s registry deps on the others hold, for a target Houdini. Pins stand as written; an unpinned package takes the newest non-yanked version that supports the Houdini and has a build for the host platform (or a universal one), with backtracking; SolveError::NoVersionForPlatform when none has. solve and solve_with hold versions to Platform::current(); solve_for_host names the platform. registry::has_build_for(entry, host) is that rule on its own, for a caller that ranks versions itself: on a get_versions entry it answers for the version. solve_with also takes available packages and chooses one only when a chosen version requires it. Earlier roots get their newest fitting version first; a version’s deps are taken by name, then requirement, so the order they are listed in changes neither the answer nor a conflict’s explanation. Pure: callers pass each package’s version list. SolveError::Conflict says in data what ruled out each version of the package it could not place: a Cause per failed requirement, naming the selected package and version (Selected) and the requirement, and an Origin for each package that says whether the project lists it or which chain of requirements pulled it in, so an embedding application can name only the packages a user can act on. hpm install reaches it through registry::closure. |
registry::closure, select_closed, select_keeping, Kept, select, Candidates, working_copy, entry_of, registry_requirements, VersionSource, Unsupplied, ClosureError, AbsentPackage, MAX_ROUNDS | A project’s whole package set: select_closed(listed, supplied, houdini, source, excluded) solves the listed packages, asks source (a VersionSource: registries online, installed versions offline, a map in tests) for every package the answer requires that nobody has fetched, and solves again until nothing new is required. supplied packages are chosen only when required, at their pin, without asking the source (a dev override the project does not list, a version the lock recorded). excluded packages are never fetched or chosen unless listed, even when supplied, and a requirement on one constrains nothing. working_copy turns a package directory’s hpm.toml into a pinned single-version Candidates requiring its registry_requirements (registry dependencies only; path/url ones are not followed). select_keeping(kept, fresh, houdini, source, frozen, excluded) is the lock policy hpm install uses: it solves with the lock’s versions (Kept: listed packages pinned at their locked version, locked required packages supplied) and, when no set fits them and frozen is false, solves fresh instead. ClosureError is typed (Solve, Unsupplied, Absent, Unsettled); wording is the caller’s. Shared by hpm install and applications that embed hpm. |
global, global::ledger | hpm global installs into Houdini’s user preferences. build_houdini_package is shared with the project emitter; Ledger records what was installed per Houdini version and doubles as a hpm clean GC root. |
houdini_prefs | Per-platform Houdini user-preferences directory resolution, including HOUDINI_USER_PREF_DIR and its __HVER__ placeholder. The only hpm module that knows a Houdini installation’s conventions. |
ArchiveFetcher | Downloads and extracts registry-hosted archives. |
exec_mode | The executable-bit rule, in one place for its two callers. repaired_mode(mode, path) / looks_executable(path) answer “is this a program that lost its bit?” per entry as an archive extracts; ensure_repaired(package_dir) applies the same rule across a tree that is already installed — the case extraction can never reach, since a package at a version you already have is never extracted again. ensure_repaired sweeps once per tree, stamping <name>@<version>.exec-modes beside (never inside) the package directory, because a package’s checksum is computed over its contents. Embedders that spawn programs out of an installed tree without going through a sync should call it — or StorageManager::repair_exec_modes() to sweep the whole store at once, which is what an embedder wants at startup so a user’s installs are repaired by its update rather than by their stumbling onto the right screen. mirror_read_bits(mode) exposes just the widening (0o644 -> 0o755) for an embedder about to spawn a path its manifest declares as a program — proof no content sniff can produce, covering what a sweep structurally cannot reach (a dev copy it doesn’t walk, a file that appeared after the tree was stamped). forget_repair drops the stamp when a tree is removed. |
fetch_manifest | Free function: returns the parsed PackageManifest for (name, version) without project context. CAS hit reads from disk; CAS miss resolves+fetches+installs. Pass "" or "latest" to pick the highest semver. |
ProjectManager | One project’s operations, built with new(project_root, storage, config) or new_with_auth(.., token): sync_dependencies / sync_dependencies_with(lock, options) install, resolve_package_env builds a script’s environment, load_project_manifest reads hpm.toml, and project_root() returns the directory it was built for. |
SyncOptions | How ProjectManager::sync_dependencies_with(lock, options) treats hpm.lock: frozen requires every registry and URL package it installs, listed or required, pinned by the lock with a checksum, and keeps the lock’s versions or fails; refresh chooses every package the project does not pin anew instead of keeping the locked version (what hpm update installs with); excluded names packages the sync must neither install nor require unless the manifest lists them (an embedding application passes the names it excluded when choosing the set: switched off, or not available to the account), so a requirement on one is left unmet, needs no registry, and gets no Houdini package file. sync_dependencies_with_lock(lock, frozen) is the former with refresh: false. |
PackageRunEnv | Resolved runtime environment for a package-env script, produced by ProjectManager::resolve_package_env(extra_requirements): the merged venv (venv_bin, virtual_env) plus python_paths (each package’s python/ then the venv site-packages) for PYTHONPATH. Read-only — built from hpm.lock + the global store, mirroring what sync_dependencies resolves for Houdini. hpm run applies it for package-env = true scripts. |
script_run | The shared [scripts] runner — the single place the script-env contract (HPM_PACKAGE_ROOT, caller extra_env, and per-script-venv or package-env PATH/VIRTUAL_ENV/PYTHONPATH) is composed. Embedders implement ScriptSink (spawn + diagnostics) and drive run_prepack(manifest, names, package_root, extra_env, sink) (a [stage].prepack sequence, fail-fast) or run_script(manifest, name, package_root, extra_args, extra_env, sink) (one entry, returns the exit code). prepare_script(...) exposes just the env+command-line composition as a PreparedScript { command_line, working_dir, env } for embedders that own their spawn loop. hpm run and hpm build’s prepack both route through here, so a manifest feature picked up by one is picked up by all — no per-embedder drift. Prefer this over re-composing prepare_script_env by hand: the lower-level handle is easy to half-wire (e.g. forgetting to put the venv interpreter on PATH). |
install_manifest | The per-file install record and the check against it. A store install (StorageManager::install_into_cas) records every file of the extracted archive as FileRecord { path, size, sha256 } and writes <slug>@<version>.files.json beside the tree as its last step; removal drops it first (forget). verify(package_dir) / StorageManager::verify_installed(&InstalledPackage) return Verification::Unrecorded (installed before 0.36.0, or a dev install) or Verification::Checked(IntegrityReport { files, problems }), each FileProblem a recorded path with a ProblemKind: Missing, Truncated { expected, actual }, Changed or Unreadable { error }. Only recorded files are checked: what Houdini and Python write into a package as it is used (__pycache__, HDA backups) is never reported. A record that is garbled, names a path outside the package, or comes from a newer format is an error, not Unrecorded. |
check | Package validation behind hpm check and the hpm pack gate: check_package(dir) -> Report, a list of Finding { severity, message } (Severity::Error/Warning/Passed/Info). Report::is_valid() is the absence of an error; messages(severity) lists one kind. Rendering is the caller’s. |
packer | Produces signed/unsigned .zip archives for hpm pack. pack_package(PackRequest { dir, output_dir, key, platform, target, verify_assets }) is the whole of hpm pack short of key resolution and rendering: the validation gate, target-platform resolution (CompatConfig::resolve_target_platform), the --sidefx README and descriptor checks, the exact-name {slug}.json (authored verbatim or generated) at the archive root, the archive and the operator index; it returns a PackOutcome { result, manifest, asset_index, warnings } and removes the archive when indexing fails or verify_assets finds a source missing. Embedders should call it rather than composing the lower-level helpers. Lower-level helpers: pack, create_archive, compute_archive_checksum/compute_bytes_checksum (SHA-256), sign_archive/sign_bytes (Ed25519, returns (base64_signature, hex_key_id)), load_signing_key / load_signing_key_from_pem. The byte-based variants are for tooling that mutates archive bytes after pack (e.g. third-party hosting that requires reshaping) and needs to recompute the hash + re-sign without round-tripping through disk. SigningKey is re-exported so callers don’t need a direct ed25519-dalek dep. |
collect_assets, AssetIndex, AssetIndexError | Builds the hpm pack operator asset index from a manifest’s [[operators]] declarations for a target platform (asset_index module). Maps each declaration to an hpm_assets::Asset (deriving namespace/version from the type name), resolving per-platform source tables to the target platform and dropping operators not shipped there. Verifies each resolved source exists in the produced archive — any that don’t are returned in AssetIndex::missing_sources for the caller to warn on or, with hpm pack --verify-assets, treat as fatal. |
hpm-package
| Type | Purpose |
|---|---|
PackageManifest | Parsed hpm.toml (every section). PackageManifest::from_path reads + parses, returning ManifestLoadError with the offending path. validate() returns the first structural error; validate_with(ValidationLevel) returns a ValidationReport { errors, warnings } separating hard errors from publish-quality advisories. |
ValidationLevel, ValidationReport | Strict runs structural checks only; Publish adds advisory warnings on missing description / authors / keywords / [compat].houdini. hpm check consumes the report; a future hpm publish can promote warnings to errors. |
ManifestLoadError | NotFound { path } / Read { path, source } / Parse { path, source }. Re-exported by hpm-core’s StorageError, ProjectError, DiscoveryError, and FetchManifestError. |
IoOp | Shared IO-error shape { op: &'static str, path: PathBuf, source: io::Error } used as the single Io(IoOp) variant in StorageError, ProjectError, and DiscoveryError. Construct via IoOp::wrap("read directory", &path, e) at call sites. |
atomic_write, retry_transient | atomic_write(path, content) stages to a fresh sibling and renames it onto path, so a crash never leaves a half-written lockfile, config or record. retry_transient(op) reruns op briefly on Windows while it fails with access denied or a sharing or lock violation, the errors a scanner or indexer causes by holding a file for a moment; elsewhere, and for any other error, the first result stands. atomic_write uses it, and so does hpm-core’s dev-copy reclaim when it moves a claimed copy back. |
PackagePath, PackagePathError | Validated creator/slug newtype. Kebab-case enforced at deserialization, so creator() and slug() return &str — no Option. |
PackageInfo | Contents of [package]. path: PackagePath is the canonical identifier; name, version, etc. are user-facing metadata. |
CompatConfig | Contents of [compat]. houdini: Option<HoudiniRange> parses and validates at deserialize time; houdini_min() extracts its lower bound for Python ABI selection. platforms: Vec<Platform> declares the native platforms this package supports — unknown identifiers fail at TOML parse via Platform::TryFrom<String>. Must reference platforms used in [stage.platform.*] entries. |
DependencySpec | Enum: Registry {..} | Url {..} | Path {..}. The bare-string shorthand pkg = "1.0.0" round-trips as Registry { registry: None, optional: false }. |
PythonDependencySpec | Untagged enum: Simple(String) | Detailed {..}. |
ManifestEnvEntry, EnvMethod | [runtime] entries (method, optional value, required flag) and methods (set/prepend/append). value is Option<EnvValue> — flat string or ordered variant list. lower(substitutions, InstallSource) is the single emit path; install-source-gated variants are filtered before lowering. |
EnvValue, EnvValueBranch, Condition | Conditional [runtime] value support. Variants compile to Houdini’s expression-object array via compile_condition / lower_conditional. Axes: houdini (Cargo-style req), os, python (all runtime-evaluated by Houdini), plus install_source (typed InstallSource: dev / registry, filtered by hpm at install time). os is a typed OsKey; unknown axis values fail at manifest load. |
PackageScripts | [scripts] table. commands: IndexMap<String, ScriptEntry> — one entry per script, with per-host variation expressed inside ScriptEntry::cmd via the same when-grammar that [runtime] uses. |
ScriptEntry, ScriptEnv | Untagged enum: Plain(String) for the shorthand form, WithEnv { cmd: ScriptCommand, python?, requirements?, label?, description?, package_env } for the table form. resolve_cmd(host_os) picks the matching variant when cmd is conditional. Accessors python(), requirements(), label(), description(), needs_venv(), uses_package_env() work on both arms. package_env (package-env in TOML) opts the script into the project’s full resolved environment — see ProjectManager::resolve_package_env. label/description are optional, consumer-agnostic display metadata that HPM itself never acts on. |
StageConfig, PlatformStaging, StagePlatformRules, PlaceRule, ProfileStaging, StageProfileRules | [stage] table. output_dir (default "dist"), prepack script list, workspace include / exclude globs, and per-platform place = [{ from, to }] rules. from is a workspace-relative glob; to is either a directory (ends with / or /., or names the image root: "", ., ./) or a literal archive path; two files placed at one archive path are refused. [stage.profile.<name>] tables (StageProfileRules) layer per-profile prepack/include/exclude/place overrides onto the base; StageConfig::resolved_for_profile(name) returns the merged config a build uses. |
Platform | Canonical platform enum, as registries spell it: LinuxX86_64, LinuxAarch64, MacosX86_64, MacosAarch64, WindowsX86_64, WindowsAarch64, Universal. os_key() returns Option<OsKey> (None for Universal). |
RegistryConfig, RegistryType | [[registries]] entries in manifests. |
OperatorDecl, OperatorKind, OperatorSource, SourceResolution | [[operators]] entries — the operators (node types) a package bundles, declared by the author so hpm pack can emit a searchable asset index. kind (Hda/Dso), type_name, and category are required; label, tab_submenu, icon, and source are optional. OperatorSource is either a single archive path or a per-platform table; OperatorDecl::resolved_source(platform) resolves it to a SourceResolution (Path / Unspecified / NotForPlatform). |
PackageTemplate | Scaffolding for hpm init (standard and --bare). |
HoudiniPackage, HoudiniNativePackage, HoudiniEnvValue | Houdini package.json output types. |
NativePackageTarget, normalize_hpackage_version, validate_hpackage_descriptor | Which consumer the bundled {slug}.json is generated for. generate_houdini_native_package_for(SideFxHpackage) (behind hpm pack --sidefx) emits the form SideFX’s hpackage repository accepts — the trimmed version and major.minor enable operands — and errors instead of emitting a bound whose meaning the rewrite would change. Generic is what generate_houdini_native_package emits. validate_hpackage_descriptor checks a descriptor hpm pack --sidefx is about to ship against the same rules from the other end — needed because a hand-written {slug}.json is shipped verbatim and never passes through the generator. It reads named fields out of the JSON rather than deserializing into HoudiniNativePackage, since a hand-written descriptor exists to express what hpm does not model, and returns the hpackage.version SideFX will store. |
hpm-assets
| Type | Purpose |
|---|---|
Asset, AssetKind | The wire model hpm pack --json emits in its assets array. One flat object per bundled operator with a kind discriminator (hda_operator/dso_operator); None fields are omitted. Built from [[operators]] declarations by hpm_core::collect_assets. |
split_type_name(type_name) | Best-effort split of a namespaced operator type name into (namespace, base, op_version) following Houdini’s namespace::name::version grammar (version detected as digits-and-dots). Used to populate an Asset’s namespace/op_version from the declared type_name. |
hpm-core::python
| Type | Purpose |
|---|---|
PythonHome | Where the Python subsystem keeps uv, its caches, the managed CPython and the venvs: the hpm home. PythonHome::for_storage(&config.storage) follows [storage] home_dir; PythonHome::of_user() is ~/.hpm. initialize, the resolvers, VenvManager::new and PythonCleanupAnalyzer::new take one. |
VenvManager | Creates and reuses content-addressable venvs under a PythonHome. |
PythonVersion | Houdini-to-Python version value. |
ResolvedDependencySet | UV-resolved dependency set (BTreeMap<name, version> plus the Python version) with a hash() content hash. |
PythonDependencies, PythonDependency, VersionSpec | Declared (pre-resolution) Python dependency types. |
VenvMetadata, OrphanedVenv | Per-venv metadata.json model and the orphan-analysis result type. |
PythonCleanupAnalyzer | Detects orphan venvs for hpm clean --python-only. A venv that records owners is orphaned when none is still installed; one with no recorded owners (a [scripts] venv, or one predating owner recording) is collected only after 30 days idle. Owners are recorded by VenvManager::ensure_virtual_environment_for. |
prepare_script_env(entry) | Per-script-venv building block: bootstraps bundled uv, materializes the venv if needed, and returns a ScriptEnvHandle carrying the env-var mutations to apply before spawning. Plain string entries return a default (no-op) handle. Covers only the python/requirements venv path — not package-env, HPM_PACKAGE_ROOT, or the command line. Most embedders should reach for hpm_core::script_run (above), which wires this plus the rest of the contract; use prepare_script_env directly only when you specifically need just the venv handle. The venv goes under the home of the user’s configuration; prepare_script_env_in(home, entry) takes the home explicitly. |
ScriptEnvHandle | Spawn-strategy-agnostic env-var bundle (path_prepend, env). apply_to(&mut HashMap<String,String>) folds it into a caller-staged env map ready for Command::envs or any other spawn primitive. |
ensure_script_venv(home, python, requirements) | Lower-level free function: resolves raw PEP-508 requirement strings via uv pip compile and defers to VenvManager, returning the venv root. Prefer prepare_script_env for the full flow. |
venv_bin_dir(path) | Returns the executable directory inside a uv-created venv (bin/ on Unix, Scripts/ on Windows). prepare_script_env already prepends this to PATH; use directly only when bypassing the handle. |
DEFAULT_PYTHON_VERSION | "3.11". The Python version ensure_script_venv uses when a script omits python. |
hpm-config
| Type | Purpose |
|---|---|
Config | Top-level config. Config::load layers defaults < ~/.hpm/config.toml < <cwd>/.hpm/config.toml, each parsed as a ConfigOverlay; a malformed file or an unknown key is an error. |
ConfigOverlay | The presence-aware partial config a file parses as (every field optional, unknown keys refused). Writing one writes only the fields that are set. The legacy [install] path is still accepted, with a warning. |
StorageConfig | home_dir, cache_dir, packages_dir, registry_cache_dir. |
InstallConfig | parallel_downloads (NonZeroUsize): how many installs a sync runs at once. |
ProjectsConfig | explicit_paths, search_roots, max_search_depth, ignore_patterns. |
RegistrySourceConfig, RegistryType | Registry entries from [[registries]]. |
SigningConfig | key_path fallback for hpm pack. |
ProjectPaths | Per-project paths (.hpm/packages/, hpm.lock, hpm.toml). |
hpm-cli
| Type | Purpose |
|---|---|
CliError | CLI-facing error enum with categorised variants (Config, Package, Network, Io). Carries optional help text. |
ExitStatus | Process-exit code abstraction; converts &CliError -> ExitStatus -> ExitCode. |
Exit codes used by hpm-cli:
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Any hpm-originated failure — bad configuration, missing manifest, network or I/O error. |
| 2 | A usage error, raised by clap before any command runs: an unknown flag, or a value a typed flag refuses. |
| N | Pass-through exit code from an invoked external tool (ExitStatus::External). |
Design principles
- Minimal coupling. Each crate owns one concern; no upward dependencies.
- Async by default. Everything I/O-bound runs on Tokio.
- Content-addressable storage. Both HPM packages (
<slug>@<version>under~/.hpm/packages/, with path-installed packages isolated in_dev/) and Python venvs (SHA-256 over the resolved set) deduplicate globally. - Safety by construction. Cleanup never removes a package an active project needs; cached packages are verified against
hpm.lockbefore every install, and downloads against the registry checksum when one is provided; signing is opt-in but standard when used. - TOML-first configuration. Every persistent config — manifest, lock file, global config — is TOML and hand-editable.
Testing Guide
HPM uses several layers of tests: traditional unit tests, integration tests, property-based tests with proptest, and a Houdini conformance test that checks generated package files against a real Houdini. This guide covers how to run them, how to write new ones, and how to debug failures.
Table of contents
Test layers
| Layer | Tools | Purpose |
|---|---|---|
| Unit | built-in #[test] | Exercise a specific function or edge case. |
| Integration | #[tokio::test] + tempfile | End-to-end workflows: CLI command invocation, filesystem layout, manifest roundtrips. |
| Property | proptest | Generate inputs at random and assert invariants. Catches edge cases a human wouldn’t think of. |
| Doc | rustdoc examples | Keep public API snippets compiling. |
| Houdini conformance | hconfig from a real Houdini install | Assert the values Houdini actually resolves from generated package files — the only layer that can catch wrong assumptions about Houdini’s semantics. |
Houdini conformance test
hpm-core/src/houdini_conformance_tests.rs writes package files through
the real emission path, runs HOUDINI_PACKAGE_VERBOSE=1 $HFS/bin/hconfig
(license-free), and asserts the merged env values from the verbose
package log. It exists because the emission layer was once validated only
against its own JSON output while Houdini silently ignored method on
flat-string custom variables. Two scenarios are covered:
-
houdini_resolves_generated_packages_per_method— packages sharing a variable plus project overrides in every method (set/prepend/append) and conditional (version/OS-gated) values. -
houdini_set_overwrites_path_registered_ocio_seed— the OCIO crash on H22.0.367: a projectseton a path-registered variable must OVERWRITE Houdini’s own$HFS/packages/ocio.jsonseed, not append onto it. It reads the real seed via a baselinehconfigrun (skipping with a note on builds that don’t seed OCIO), then assertssetreplaces it wholesale rather than resolving to the two-pathbuiltin;projectvalue that crashesOCIO.Config.CreateFromFile. The path-registered-append behavior is invisible to the executable model below (it starts from an empty variable set), so only this real-Houdini layer can catch it. -
The Houdini install is auto-discovered:
$HFSfirst, then the platform-standard locations (/opt/hfs*,/Applications/Houdini/...,C:\Houdini *). -
Without an install the test skips (passing, with a
SKIPPEDnote). SetHPM_REQUIRE_HOUDINI=1to turn the skip into a failure — the CI check pipeline does, since the workers all have Houdini.
The semantics the emission layer targets are also captured as an
executable model (hpm-core/src/houdini_env_model.rs); a property test
(houdini_emission_model_tests.rs) runs randomized packages and project
overrides through the real emission code and the model, asserting that
package values survive overrides, overrides apply exactly once, and
nothing emitted uses a method or value shape Houdini rejects. When a new
question about Houdini’s package semantics comes up, extend the
conformance test to settle it empirically, then encode the answer in the
model.
Known-answer tests for wire formats
A round-trip test cannot catch a changed format. sign → verify in the same
build passes whatever the bytes are, so it holds even if a dependency upgrade
silently re-encodes the output — and for a signature that would invalidate
every artifact already published, with the failure surfacing on a user’s
machine at install time rather than in CI.
Anything whose bytes leave the process and are read back by someone else — a
signature, a checksum, an index line — gets a known-answer test instead:
fixed input, expected output written out literally.
signing_matches_the_published_wire_format pins the base64 signature and
key_id for a fixed key and message; it is what makes an ed25519-dalek,
sha2 or base64 bump a mechanical change rather than a leap of faith.
This only works where the computation is deterministic. Ed25519 is (RFC 8032), so there is no nonce to make the vectors flaky: a changed value means the format changed. Where output legitimately varies, pin the invariant part rather than reaching for a round-trip.
Property test distribution
Property tests sit wherever a rule can be stated over generated inputs.
Exact counts shift over time — grep -rc "proptest!" crates/*/src crates/*/tests lists the files that hold them (one proptest! block may
hold several properties, and not every property is named prop_*).
| Crate | Focus |
|---|---|
hpm-cli | Every global flag parses on either side of every subcommand, and refused argument values (tests/cli_flags.rs); name@version parsing in add; text from a package or registry reaches the terminal without control or bidirectional characters (console.rs). |
hpm-core | Store layout and staging, the cleanup plan (dry run equals real run), what hpm clean keeps equal to what the roots reach, and cycle reporting (graph.rs), store coordinates that never leave their root (storage/layout.rs) and store identity (storage_tests.rs), dev copies living exactly as long as a project or process uses them, including under concurrent syncs and late background reclaims, tombstones an earlier reclaim left behind, claims made while a reclaim runs (before the move a copy is never moved, after it the copy goes back), and hpaths that spell the copy’s path differently (project_tests.rs, storage/dev_users.rs), ProjectManager::project_root() returning the root as it was passed (project_tests.rs), lockfile round-trips, lock_is_current and a tampered lock never passing (lock.rs), the lockfile tree digest (tree_hash.rs), the one version-requirement grammar and what it selects (registry/requirement.rs), the solver against brute force, including answers that do not depend on the order deps, versions or available packages are listed in (registry/solve.rs), the required-package loop choosing exactly what offering every package up front would, and keeping a lock’s versions exactly while they fit, falling back to a fresh choice unless frozen (registry/closure_tests.rs), hpm clean keeping exactly the versions a project’s lock and requirements reach (graph.rs), a sync against a git index installing a complete, minimal set that leaves excluded packages out, with a Houdini package file and lock entry exactly for what it installed (project_tests.rs), excluding a package being the same as offering everything but it (registry/closure_tests.rs), tokens sent only to their own registry’s origin (registry/mod.rs), git remotes that cannot become git options, and local paths that never pin to a URL (registry/git.rs), Windows hpm run argument quoting (script_run.rs), [dependencies] edits loading back exactly as written (project/manifest_edit.rs), pack descriptors and archive names, and every staged file getting its own archive path inside the image (packer/), the size check against the pack image (check.rs), project discovery and ignore patterns (discovery.rs), the Houdini env emission model (houdini_emission_model_tests.rs), the executable-bit repair (exec_mode.rs, the one place hpm changes permissions on a user’s installed files), install records, archive extraction, and the python submodule’s versions and content hashes. |
hpm-package | Manifest validation and TOML round-trips (tests/properties.rs), Houdini range matching against an independent model (tests/houdini_range_matches.rs), dependency specs, name@version splitting, the one path-confinement rule for archive entries and place targets (path_util.rs, manifest/stage.rs), and [python_dependencies] versions that cannot smuggle installer options (python.rs). |
hpm-config | Config overlays round-trip through TOML and write only the fields that are set (tests/overlay_properties.rs). |
hpm-assets | Asset index serialization. |
Documentation checks
crates/hpm-cli/tests/docs.rs tests docs/ against the code:
SUMMARY.mdandmanifest.tomleach list exactly the pages indocs/.- Every relative link, and every
#anchor, points at a page and heading that exist. - Every
tomlblock parses, and every block made ofhpm.tomlsections loads as a manifest. - The long flags
cli.mdmentions are the long flags clap defines, in both directions. - Identifiers named in
architecture.md,api-overview.mdand this page exist somewhere incrates/.
A failure names the page and line. Where a page legitimately names something that is not a Rust item, or a flag of another program, add it to the allow-list beside the test.
Running tests
# everything: cli (single-threaded), rest of workspace, then doctests
just test
# doctests only — public-API examples in //! and /// blocks
just test-doc
# slow / external-dependency tests gated behind `#[ignore]`
# (currently: real-uv venv smoke tests in hpm-core::python)
just test-ignored
# raw cargo equivalents
cargo test --workspace
cargo test --workspace --doc
# one crate
cargo test -p hpm-core
# one test by name
cargo test prop_a_requirement_reads_back_as_written
# property tests only
cargo test prop_
# sequential execution (required when tests touch shared filesystem paths;
# `just test` already does this for hpm-cli via the CwdGuard)
cargo test --workspace -- --test-threads=1
# more proptest cases (default 256)
PROPTEST_CASES=1000 cargo test prop_ --workspace
Configuration
Proptest environment variables
| Variable | Default | Purpose |
|---|---|---|
PROPTEST_CASES | 256 | Number of cases per property test. |
PROPTEST_MAX_SHRINK_ITERS | 1024 | Shrinking budget on failure. |
PROPTEST_TIMEOUT | — | Per-case timeout (ms). |
PROPTEST_VERBOSE | 0 | Dump generated inputs as they run. |
A proptest! block that sets its own count
(#![proptest_config(ProptestConfig::with_cases(n))]) runs n cases and
ignores PROPTEST_CASES; many of the solver’s and path-confinement blocks
do.
CI
There is no proptest-specific CI matrix — CI runs the suite at proptest’s
default case count and never sets PROPTEST_CASES.
The only test pipeline is .woodpecker/check.yml, which is tag-gated
(event: tag, ref: refs/tags/v*) and so does not run on push or pull
request. It runs:
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
with HPM_REQUIRE_HOUDINI=1, since the build workers have Houdini installed
and the hconfig conformance test must run rather than silently skip.
Raising the case count is therefore a local operation:
PROPTEST_CASES=2000 cargo test --workspace
Writing property tests
A property test defines a strategy for generating inputs and an invariant that must hold for every generated input.
Custom strategies
Constrain generators to the valid input space. Unconstrained any::<String>()
mostly generates nonsense and rejects it, which wastes cycles and produces
misleading shrinks.
#![allow(unused)]
fn main() {
use proptest::prelude::*;
// Good — produces valid package slugs by construction
fn slug_strategy() -> impl Strategy<Value = String> {
"[a-z][a-z0-9-]{1,20}"
.prop_map(|s| s.trim_end_matches('-').to_string())
.prop_filter("non-empty", |s| !s.is_empty())
}
fn version_strategy() -> impl Strategy<Value = String> {
(0u32..100, 0u32..100, 0u32..100)
.prop_map(|(maj, min, pat)| format!("{maj}.{min}.{pat}"))
}
}
Invariants worth testing
Roundtrip — serialize and deserialize and compare:
#![allow(unused)]
fn main() {
proptest! {
#[test]
fn prop_manifest_toml_roundtrip(manifest in manifest_strategy()) {
let toml_str = toml::to_string(&manifest).unwrap();
let parsed: PackageManifest = toml::from_str(&toml_str).unwrap();
prop_assert_eq!(manifest.package.path, parsed.package.path);
prop_assert_eq!(manifest.package.version, parsed.package.version);
}
}
}
Validation always holds — every value the strategy produces should pass validation:
#![allow(unused)]
fn main() {
proptest! {
#[test]
fn prop_valid_manifests_validate(manifest in valid_manifest_strategy()) {
prop_assert!(manifest.validate().is_ok());
}
}
}
Determinism — running the same operation twice should produce the same result:
#![allow(unused)]
fn main() {
proptest! {
#[test]
fn prop_content_hash_is_deterministic(set in resolved_set_strategy()) {
prop_assert_eq!(set.hash(), set.hash());
}
}
}
Additive change — an operation that repairs or upgrades a value should
only ever add, never remove. exec_mode’s executable-bit repair is the
example: for every mode and every file content, the repaired mode is a
superset of the original, nothing outside the execute bits moves, and a file
that is not a program is returned untouched. When the code under test widens
a permission on a user’s files, this is the shape to reach for — a handful of
examples cannot express “and nothing else changed”.
When exhaustive beats sampled
If the input space is small enough to enumerate, enumerate it: a loop over
every value is complete, where proptest only samples. A Unix mode is 4096
values, so mirror_read_bits’s invariants are checked with a plain #[test]
over 0..=0o7777 rather than a strategy, and the desktop’s spawn-time repair
crosses all 512 permission modes with each error kind it can see. Reserve
proptest for the dimension that genuinely can’t be enumerated — in the same
module, that’s file content, which decides whether a file is a program.
Mixing the two in one module is normal and worth doing deliberately: state in the test’s doc comment which dimension is exhaustive and which is sampled, so the next reader doesn’t “upgrade” a complete check into a weaker one.
Filesystem properties
A property test that writes real files hits cases examples never generate,
including ones that break the test: a generated mode of 0o000 makes the
file unreadable and unwritable by its own owner, so a test that rewrites a
fixture per iteration, or reads content back before asserting on modes, will
fail on its own harness rather than on the code. Create the fixture once and
chmod per case, and do content assertions last, after granting yourself
access back.
Real bug caught by property tests
A whitespace-only version requirement (" ") was once accepted as valid.
A property test that fed r"\s*" into the parser surfaced it; the fix was
to trim before the empty check. Every such bug gets a regression file
that fails until the fix stays in place.
Regression files
Proptest persists failing cases to crates/<crate>/proptest-regressions/.
These are source-of-truth regression tests — commit them alongside the fix.
crates/hpm-core/proptest-regressions/
├── check.txt # Each line is a minimized failing input.
├── discovery.txt
├── packer/package.txt
├── project_tests.txt
├── storage_tests.txt
└── tree_hash.txt
hpm-config and hpm-package keep theirs beside the test file
(tests/*.proptest-regressions). A seed recorded while checking that a
property catches a deliberately planted bug is worth committing too: it is
the smallest input that exposes that bug, and proptest replays it first.
Never delete these by hand unless you’re certain the bug class is gone and the input is no longer meaningful.
Debugging failures
Get a minimal failing input
Proptest automatically shrinks to the smallest input that still fails. To see the shrink trace:
PROPTEST_VERBOSE=1 cargo test failing_prop_test -- --nocapture
Reduce the case count while iterating
PROPTEST_CASES=10 cargo test failing_prop_test -- --nocapture
Inspect the regression file
cat crates/hpm-core/proptest-regressions/project.txt
Each line is a serialized form of the seed that reproduced the bug. Proptest replays these on every subsequent run, so the same minimal case is checked deterministically until you fix it.
Move/borrow issues in assertions
prop_assert_eq! moves its operands. If you want to assert on a field and
then on a predicate, clone:
#![allow(unused)]
fn main() {
prop_assert_eq!(value.field.clone(), expected);
prop_assert!(value.is_valid());
}
Running coverage
cargo install cargo-tarpaulin
PROPTEST_CASES=500 cargo tarpaulin --workspace --out html