Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundler git deps fixes #770

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

slimreaper35
Copy link
Member

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • Docs updated (if applicable)
  • Docs links in the code are still valid (if docs were updated)

Note: if the contribution is external (not from an organization member), the CI
pipeline will not run automatically. After verifying that the CI is safe to run:

Copy link
Collaborator

@a-ovchinnikov a-ovchinnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short and mostly LGTM with a few super small questions.

tests/unit/package_managers/bundler/test_main.py Outdated Show resolved Hide resolved
cachi2/core/package_managers/bundler/parser.py Outdated Show resolved Hide resolved
If the branch does exist, checkout the branch in the repository.
Do not go to detached state afterwards. Use `git reset --hard` instead.

Signed-off-by: Michal Šoltis <msoltis@redhat.com>
The name of the cached git repository comes from git URL, not from the
name declared in the Gemfile. We use `repo_name` property for that in
the `GitDependency` class [1]. Reuse the property for the cache path in
the bundler config file as well.

---
[1]: https://github.com/containerbuildsystem/cachi2/blob/main/cachi2/core/package_managers/bundler/parser.py#L143

Signed-off-by: Michal Šoltis <msoltis@redhat.com>
@slimreaper35 slimreaper35 added this pull request to the merge queue Dec 19, 2024
Merged via the queue into containerbuildsystem:main with commit 7fb76a9 Dec 19, 2024
16 checks passed
@slimreaper35 slimreaper35 deleted the bundler branch December 19, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants