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

chore(deps): do not upgrade indirect Go deps #210

Merged
merged 1 commit into from
May 10, 2023

Conversation

behnazh-w
Copy link
Member

Closes #209

For Go dependencies, instead of using go get -u we can use the code snippet suggested here to avoid updating indirect dependencies, which can result in a broken state.

Note that Dependabot by default only updates the direct dependencies, so with this change make upgrade-go will be compatible with Dependabot.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w requested a review from tromai as a code owner May 9, 2023 23:17
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 9, 2023
@tromai
Copy link
Member

tromai commented May 9, 2023

so with this change make upgrade-go will be compatible with Dependabot.

I still not quite get this part. By compatible, do you mean that it reflects the same mechanism as Dependabot in updating only direct dependencies?

Otherwise, everything LGTM.

@behnazh-w
Copy link
Member Author

I still not quite get this part. By compatible, do you mean that it reflects the same mechanism as Dependabot in updating only direct dependencies?

It means that by forcefully updating the indirect dependencies, the direct dependencies that depend on them (by pinning their version) might not be compatible with the new versions.

@behnazh-w behnazh-w merged commit a8786ca into staging May 10, 2023
@behnazh-w behnazh-w deleted the 209-do-not-update-indirect-go-dependencies branch May 10, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants