Skip to content

🎁 Buoy will float to branch for submodules other then root#37

Merged
knative-prow[bot] merged 3 commits into
knative:mainfrom
cardil:bugfix/buoy-submodules
Jan 29, 2025
Merged

🎁 Buoy will float to branch for submodules other then root#37
knative-prow[bot] merged 3 commits into
knative:mainfrom
cardil:bugfix/buoy-submodules

Conversation

@cardil

@cardil cardil commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

Fixes #36

@knative-prow

knative-prow Bot commented Jan 28, 2025

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 28, 2025

@knative-prow knative-prow Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@cardil: 0 warnings.

Details

In response to this:

Which issue(s) this PR fixes:

Fixes #36

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 28, 2025
@cardil cardil changed the title [WIP] 🎁 Buoy will float to branch for submodules other then root 🎁 Buoy will float to branch for submodules other then root Jan 28, 2025
@cardil cardil marked this pull request as ready for review January 28, 2025 13:18
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 28, 2025
@knative-prow knative-prow Bot requested review from mgencur and psschwei January 28, 2025 13:18
@cardil

cardil commented Jan 28, 2025

Copy link
Copy Markdown
Contributor Author

/cc @dsimansk

I think this is it. Please, take a look.

@knative-prow knative-prow Bot requested a review from dsimansk January 28, 2025 13:18

@dsimansk dsimansk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you mind capturing a note in README.md and also adding a bit of context to the float cmd help message, pls?

@dsimansk

Copy link
Copy Markdown
Contributor

Otherwise works well in a few tries I've done on main Serving and plugins repos. It really does what we need with recognizing submodule. :)

Comment thread pkg/git/git_test.go
"Any - v0.2 - with submodule": {
repo: submoduleRepo,
version: semver.MustParse("0.2.0"),
want: "ref@release-0.2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be ref@sub/release-0.2 no? is this not a tag? perhaps this is a branch and I don't fully understand what the goal is.

@cardil cardil Jan 28, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We thought to go for the branches for submodules. Otherwise, we would need to add additional Git tags to the repo like: sub/v0.2.0.

In fact, in that case we wouldn't need to adjust the buoy, as the ref@v0.2.0 will just work, if those additional tags were added to the repo.

@cardil cardil requested a review from n3wscott January 28, 2025 17:40
@cardil cardil requested a review from dsimansk January 29, 2025 10:46
@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jan 29, 2025
@knative-prow

knative-prow Bot commented Jan 29, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cardil, dsimansk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot merged commit bc7e152 into knative:main Jan 29, 2025
@cardil cardil deleted the bugfix/buoy-submodules branch January 29, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buoy support for nested submodules without named tags

3 participants