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
``pylock.toml`` pins. If no file exists on disk, the SHA from ``commit-latest.env`` is used with
8
8
``git show`` (fetching from the canonical repo if needed): ``https://github.com/opendatahub-io/notebooks.git``
9
9
(``--variant odh``) or ``https://github.com/red-hat-data-services/notebooks.git`` (``--variant rhoai``).
10
-
- Older tags (e.g. ``-2025-2``): SHA from ``commit.env`` (``<base>-commit-2025-2``).
10
+
- Older tags (e.g. ``-2025-2``): SHA from ``commit.env``. Those commits may exist only on the canonical
11
+
upstream (especially RHDS for ``--variant rhoai``); the script runs ``git fetch`` before ``git show``
12
+
when the object is not already in the clone (fork CI often lacks RHDS-only SHAs until fetched).
11
13
12
14
Those SHAs match ``manifests/tools/generate_kustomization.py`` / ConfigMap keys.
13
15
16
+
Abbreviated SHAs (from ``commit*.env``) are expanded to full 40-character OIDs via the GitHub REST API
17
+
when the canonical remote is ``github.com`` — ``git fetch … <short>`` treats short hex as a ref name and
18
+
fails with ``couldn't find remote ref``. Set ``GITHUB_TOKEN`` / ``GH_TOKEN`` for API auth (rate limits).
19
+
14
20
Dependency *names* and ordering are taken from the existing manifest; versions are updated from
15
21
the resolved lockfile at each ref (same translation rules as ``tests/test_main.py``). Older commits may only have ``requirements.txt`` or flavor files such as ``requirements.cpu.txt``
16
22
instead of ``pylock.toml`` / ``uv.lock.d/pylock.*.toml``; those are parsed as pinned PEP 508 requirements.
@@ -31,10 +37,14 @@
31
37
importdataclasses
32
38
importjson
33
39
importlogging
40
+
importos
34
41
importre
42
+
importshlex
35
43
importsubprocess
36
44
importsys
37
45
importtomllib
46
+
importurllib.error
47
+
importurllib.request
38
48
frompathlibimportPath
39
49
fromtypingimportAny
40
50
@@ -84,7 +94,7 @@
84
94
}
85
95
)
86
96
87
-
# Canonical Git URLs for ``git fetch`` when the ``-n`` tag commit is not already in the local object DB.
97
+
# Canonical Git URLs for ``git fetch`` when a pinned commit is not already in the local object DB.
0 commit comments