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

Fix GitHub bootstrap for repositories with custom properties #4959

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan added the area/bootstrap Bootstrap related issues and pull requests label Aug 28, 2024
Comment on lines -76 to -83
if ok, err := client.HasTokenPermission(context.Background(), gitprovider.TokenPermissionRWRepository); err != nil {
log.Fatalf("error getting token permission: %s", err)
} else {
if !ok {
log.Fatal("token has no write permissions")
}
}

Copy link
Contributor

@darkowlzz darkowlzz Aug 29, 2024

Choose a reason for hiding this comment

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

I couldn't figure out the reasoning behind removing this. The Client.HasTokenPermission() API still exists in [email protected]. Is it a debug change?
Some hint in the commit body would be helpful.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's broken due an API change upstream and it's really useless here.

@stefanprodan
Copy link
Member Author

stefanprodan commented Sep 3, 2024

We have the confirmation that this fix works: #4957

@stefanprodan stefanprodan mentioned this pull request Sep 3, 2024
57 tasks
@stefanprodan stefanprodan merged commit 6996451 into main Sep 3, 2024
10 checks passed
@stefanprodan stefanprodan deleted the fix-github-bootstrap branch September 3, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flux bootstrap github fails for repositories with custom properties
2 participants