You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address review findings for hermetic prefetch scripts
- Fix CACHI2_OUT_DIR not used by hermeto-fetch-gomod.sh and download-rpms.sh,
which would write deps to wrong directory under namespaced layout
- Fix npm download failures silently swallowed: add return 1 on wget failure
and check xargs exit code
- Fix should_keep_for_arch false positives: parse wheel platform tag instead
of naive substring matching (e.g. "any" in "manylinux" was always true)
- Fix --arch silently skipped when yq missing in hermeto-fetch-rpm.sh: now
fails fast with clear error
- Normalize COMPONENT_DIR (strip trailing slash) before hashing to match
Makefile's patsubst behavior
- Use symlinks instead of cp -r in hermeto-fetch-rpm.sh arch filtering
- Remove dead counter variables in download-npm.sh
- Update docs to reflect hashed cachi2/output/<hash>/ layout
- Fix stale README claim about download-pip-packages.py not being called
- Fix missing newline at end of create-requirements-lockfile.sh
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: scripts/lockfile-generators/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ internally. Option 6 (Git submodule) is a manual setup.
153
153
| Helper | Used by | Purpose |
154
154
|--------|---------|---------|
155
155
|`helpers/pylock-to-requirements.py`| pip | Convert `pylock.<flavor>.toml` (PEP 751) to pip-compatible `requirements.<flavor>.txt` with `--hash` lines. |
156
-
|`helpers/download-pip-packages.py`| pip |Standalone pip downloader: downloads wheels/sdists from a `requirements.txt` (with `--hash` lines) into `cachi2/output/deps/pip/`. Not called by `create-requirements-lockfile.sh` (which has its own inline download from pylock.toml). |
156
+
|`helpers/download-pip-packages.py`| pip |Pip downloader: downloads wheels/sdists from a `requirements.txt` (with `--hash` lines) into `cachi2/output/<hash>/deps/pip/`. Called by `create-requirements-lockfile.sh --download`. Supports `--arch` filtering and parallel downloads. |
157
157
|`helpers/download-rpms.sh`| RPM | Download RPMs from `rpms.lock.yaml` via `wget` into `cachi2/output/deps/rpm/` and create DNF repo metadata. Standalone alternative to `hermeto-fetch-rpm.sh`. |
158
158
|`helpers/hermeto-fetch-rpm.sh`| RPM | Download RPMs from `rpms.lock.yaml` using [Hermeto](https://github.com/hermetoproject/hermeto) in a container. Handles RHEL entitlement cert extraction for `cdn.redhat.com` auth. Called by `create-rpm-lockfile.sh --download`. |
159
159
|`helpers/hermeto-fetch-npm.sh`| npm | Alternative npm fetcher using [Hermeto](https://github.com/hermetoproject/hermeto) in a container. |
0 commit comments