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

Bump go-git to v5.6.0 to remove cgo dependency. #12310

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

dixler
Copy link
Contributor

@dixler dixler commented Feb 28, 2023

Description

This PR removes a cgo dependency from pulumi which broke builds in pulumi-docker-containers (see pulumi/pulumi-docker-containers#127).

go-git introduced a cgo dependency they have removed the dependency as of https://github.com/go-git/go-git/releases/tag/v5.6.0 and this PR bumps our version of go-git to that version.

Fixes #12309

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@dixler dixler added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Feb 28, 2023
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2023-02-28)

@dixler dixler marked this pull request as ready for review February 28, 2023 23:33
@abhinav
Copy link
Contributor

abhinav commented Feb 28, 2023

I think you'll need to update some of the test go.mod files as well.

% rg -g 'go.mod' -l go-git | wc -l
      50

Something like this will update all of them:

find . -name go.mod -exec dirname '{}' ';' | while read R; do
  (cd "$R" && go get github.com/go-git/go-git/v5@latest)
done
./scripts/tidy.sh

pulumi-docker-containers builds.
Copy link
Contributor

@abhinav abhinav left a comment

Choose a reason for hiding this comment

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

image

@dixler
Copy link
Contributor Author

dixler commented Mar 1, 2023

bors merge

bors bot added a commit that referenced this pull request Mar 1, 2023
12310: Bump go-git to v5.6.0 to remove cgo dependency. r=dixler a=dixler

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

This PR removes a cgo dependency from pulumi which broke builds in pulumi-docker-containers (see pulumi/pulumi-docker-containers#127).

go-git introduced a cgo dependency they have removed the dependency as of https://github.com/go-git/go-git/releases/tag/v5.6.0 and this PR bumps our version of go-git to that version.

Fixes #12309 

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Kyle Dixler <kyle@pulumi.com>
@bors
Copy link
Contributor

bors bot commented Mar 1, 2023

Build failed:

@dixler
Copy link
Contributor Author

dixler commented Mar 1, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 1, 2023

Build succeeded:

  • bors-ok

@bors bors bot merged commit 97fb30e into master Mar 1, 2023
@bors bors bot deleted the dixler/12309/bump-go-git branch March 1, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump go-git to v5.6.0 to remove cgo dependency
3 participants