Skip to content

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
@ramondeklein ramondeklein marked this pull request as ready for review May 24, 2024 19:42
@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
@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