Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-02-24 | just-lock: Implement 'generic' source type | Paul Cristian Sarbu | |
2025-02-24 | just-lock: Allow input argument for method running commands | Paul Cristian Sarbu | |
2025-02-24 | just-lock: Avoid unnecessary chances for unwanted side-effects | Paul Cristian Sarbu | |
...in handling mutable objects. In particular, treat mutable function variables, as well as any references they might contain, as constant. | |||
2025-02-24 | just-lock: Fix parsing of optional container fields | Paul Cristian Sarbu | |
...with not-None defaults. While there, fix wrong command environment set in 'git tree' imports. | |||
2025-02-20 | just-lock: Add support for cloning 'git tree' repositories | Paul Cristian Sarbu | |
2025-02-20 | just-lock: Add test for cloning archive-related repositories | Paul Cristian Sarbu | |
...such as 'archive', 'zip', 'foreign file', and 'distdir'. | |||
2025-02-20 | just-lock: Add support for cloning 'distdir' repositories | Paul Cristian Sarbu | |
2025-02-20 | just-lock: Add support for cloning 'foreign file' repositories | Paul Cristian Sarbu | |
2025-02-20 | just-lock: Add support for cloning 'archive' and 'zip' repositories | Paul Cristian Sarbu | |
For these repositories the clone will contain only the subdir of the resolved unpacked archive. | |||
2025-02-20 | just-lock: Add support for cloning 'git' repositories | Paul Cristian Sarbu | |
2025-02-20 | just-lock: Initial implementation of --clone option | Paul Cristian Sarbu | |
This option stages locally the sources (i.e., workspace root) of a target repository found by following a list of bindings from a known starting repository. The final configuration will keep during deduplication the names of each starting repository and each target repository, with the output configuration updated to point to these local clones. Precomputed repositories cannot be cloned. Implementation is split in multiple commits. This commit contains the main logic for handling cloning. Currently only support for 'file' repositories is implemented. The code structure allows it to be subsequently extended to all other repository types. | |||
2025-02-20 | just-lock: Add utility doing own parsing before fetching archive | Paul Cristian Sarbu | |
Preparatory commit for implementation of '--clone' option. | |||
2025-02-20 | just-lock: Add option to set a just binary to use | Paul Cristian Sarbu | |
2025-02-20 | just-lock: Support special pragma for plain imports | Paul Cristian Sarbu | |
Marking a source repository 'as plain' means that the whole source repository tree will get imported as a repository type corresponding to the source type. In this case, additional pragmas than those supported by the inndividual imports might need to be set. Solve this by supporting the just-mr-style 'pragma' field also in the source description, for all sources also accepting the 'as plain' field. Currently support only the 'special' pragma. Document change and add test for plain imports that checks this feature. | |||
2025-02-20 | just-lock: Improve handling of pragmas in 'repos' import description | Paul Cristian Sarbu | |
In particular, any transitive 'file'-type repository will inherit any given '{to_git: true}' pragma in the import description objects. Note that this technically can only happen for transitive 'file' repositories imported from a 'file' source, so in all other cases such a pragma would not have any effect. Document change and extend the import from 'file' source test to check this feature. | |||
2025-02-20 | just-import-git: Fix missing inherited pragmas | Paul Cristian Sarbu | |
Update CHANGELOG accordingly. | |||
2025-02-20 | just-lock: Fix missing inherited pragmas | Paul Cristian Sarbu | |
Transitive 'file'-type repositories should inherit any pragmas suported by the new repository type they are rewritten as. Extend import tests to avoid regressing on this issue in the future. | |||
2025-01-29 | just-lock: Search for archives to fetch also in Git cache | Paul Cristian Sarbu | |
...before trying remotes. | |||
2025-01-29 | just-lock: Run commit check command only on existing repositories | Paul Cristian Sarbu | |
While there, improve docstrings of methods operating on Git repositories to specify when the underlying Git repositories are expected to be present. | |||
2025-01-29 | just-lock: Add support for 'tree structure' roots | Paul Cristian Sarbu | |
Based on f0473730 and 22ef0a16 | |||
2025-01-29 | just-lock: Fix deduplication of 'computed' roots | Paul Cristian Sarbu | |
Based on 76ce2123 | |||
2025-01-29 | just-lock: Normalize subdir before checking if non-upward | Paul Cristian Sarbu | |
2025-01-29 | just-lock: Improve error handling for importing to Git | Paul Cristian Sarbu | |
2025-01-29 | just-lock: Ensure all commands use the run_cmd method | Paul Cristian Sarbu | |
2025-01-29 | just-deduplicate-repos: Fix formatting | Paul Cristian Sarbu | |
2025-01-29 | just-lock config: Make field names consistent with just-mr | Paul Cristian Sarbu | |
2025-01-21 | Exclude 'tree_structure' directory from bootstrapping | Maksim Denisov | |
2025-01-20 | just-lock: Implement import source 'git-tree' | Paul Cristian Sarbu | |
2025-01-17 | just-lock: Move import utilities code section | Paul Cristian Sarbu | |
...below the GitCAS and CAS utilities, in order for those to be available for use when implementing the other import source types. | |||
2025-01-17 | just-lock: Improve handling of 'subdir' paths | Paul Cristian Sarbu | |
Enforce 'subdir' field of 'archive' import source to also be non-upward. Normalize subdirs during rewrite of dependent 'file'-type repositories. | |||
2025-01-17 | just-import-git: Normalize 'subdir' path during repository rewrite | Paul Cristian Sarbu | |
2025-01-16 | just-lock: Do not use temp dirs outside local build root | Paul Cristian Sarbu | |
2025-01-13 | import tools: Fix rewrite of unneeded fields | Paul Cristian Sarbu | |
The rewrite logic assumes that for repositories taken as layers we will not have certain fields and so they are unconditionally reassigned. Fix this by extending the existing check for bindings to include also alternative roots and root files. | |||
2025-01-10 | just-lock: Implement 'archive' import source | Paul Cristian Sarbu | |
Use local CAS to cache fetched archives. Take the storage garbage collector shared lock to guard against unwanted generation rotations. | |||
2025-01-10 | just-lock: Use the GitCAS during 'git' source imports | Paul Cristian Sarbu | |
Add file locking logic; guard critical Git operations with the same approach as in Just and also take the repositories garbage collector shared lock to guard against unwanted generation rotations. | |||
2025-01-10 | just-lock: Try also mirrors when importing known commit from Git repos | Paul Cristian Sarbu | |
When commit to fetch is known, check mirrors before going to the main URL. While there, ensure the context for logging in the checkout method is not replaced, but appended to. | |||
2025-01-10 | just-lock: Add attempts argument to method running commands | Paul Cristian Sarbu | |
2025-01-10 | just-lock: Improve docstrings and method signatures | Paul Cristian Sarbu | |
...to better reflect intent. In particular, improve the name of the variable storing the partial description to be used during rewrite of dependent 'file'-type repositories brought in by an import. | |||
2025-01-10 | just-lock: Improve directory tree removal | Paul Cristian Sarbu | |
2025-01-10 | just-lock: Fix 'repositories' field not updated in import loop | Paul Cristian Sarbu | |
2025-01-09 | Support deduplication of "tree structure" roots | Maksim Denisov | |
2025-01-09 | Support import of "tree structure" roots | Maksim Denisov | |
2025-01-08 | Fix deduplication of target repos in precomputed roots | Maksim Denisov | |
2024-12-17 | just-lock: Implement import source type 'file' | Paul Cristian Sarbu | |
2024-12-17 | just-lock: Improve error handling of command line parsing | Paul Cristian Sarbu | |
2024-12-17 | just-lock: Match logging style of just-mr, including colors | Paul Cristian Sarbu | |
Use the RGB values of the predefined fmt library colors that both just and just-mr use. | |||
2024-12-17 | just-lock: Fix plain configuration map for 'git' imports | Paul Cristian Sarbu | |
While there, also improve check for early return from import method. | |||
2024-12-11 | Initial implementation of just-lock | Paul Cristian Sarbu | |
Able to handle imports from Git repositories and deduplicate the resulting configuration. | |||
2024-12-10 | just-deduplicate-repos: Add support for computed repositories | Paul Cristian Sarbu | |
2024-12-10 | just-import-git: Add support for computed repositories | Paul Cristian Sarbu | |