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

Provide workaround for circular dependency #3361

Merged
merged 8 commits into from
Jun 5, 2024

Conversation

ramondeklein
Copy link
Collaborator

@ramondeklein ramondeklein commented May 24, 2024

TL;DR If you create a PR in this repo that depends on changed code in the https://github.com/minio/minio repository, then make sure you push that code to your fork of https://github.com/minio/minio with the same branch name before pushing to the console repo.

Details

This PR only changes the build procedure to provide a workaround to the cricular dependency that may result in a failing build. Suppose that you create a PR in the console that depends on certain code in the https://github.com/minio/minio repository, then the Github actions often fail, because it tried to build against the master branch of the MinIO repository in the MinIO account.

This PR changes the behaviour, because it will try to build against the MinIO repository in the account where the PR is originating from. So if you create a PR in https://github.com/ramondeklein/console with branch example, then it will try to checkout https://github.com/ramondeklein/minio (branch example) before it falls back to https://github.com/minio/minio (branch master).

I would have liked to avoid repeating code, but Github actions still doesn't support YAML anchors 👎🏻

@ramondeklein ramondeklein self-assigned this May 24, 2024
@ramondeklein ramondeklein marked this pull request as draft May 24, 2024 19:05
@harshavardhana
Copy link
Member

this provides a proper alternative we should take this in.

@harshavardhana
Copy link
Member

PTAL @donatello

@harshavardhana
Copy link
Member

PTAL @dvaldivia

Copy link
Member

@donatello donatello left a comment

Choose a reason for hiding this comment

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

Yeah we can try it this way. The problem only happens occasionally.

@ramondeklein
Copy link
Collaborator Author

@harshavardhana Can you merge? I don't am authorized to merge in console.

@cesnietor cesnietor merged commit 72939e0 into minio:master Jun 5, 2024
33 checks passed
@ramondeklein ramondeklein deleted the circdep-workaround branch June 5, 2024 18:38
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.

4 participants