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

ci: Fix broken main #52

Merged
merged 5 commits into from
Sep 14, 2023
Merged

ci: Fix broken main #52

merged 5 commits into from
Sep 14, 2023

Conversation

abhinav
Copy link
Collaborator

@abhinav abhinav commented Sep 13, 2023

CI on main is currently broken for several reasons:

  • The Makefile wasn't Windows friendly.
  • Some of the documentation had broken links.
  • Some of the documentation was poorly formatted.
  • Windows support is broken.

All but the last issue has been fixed by this PR.
We're dropping Windows support for now.
Two follow-ups were created: #53, #54

`$(shell pwd)` doesn't work on Windows as-is.
Use MAKEFILE_LIST to get the path to the Makefile,
and then work back to find the directory from that.
This is cross-platform.

Also make the Makefile always run the bash shell,
so we it doesn't try to powershell anything.

Lastly, make the cff, mockgen, staticcheck, and mdox targets
relative to the directory rather than absolute.
Their absolute paths aren't necessary; bin is added to the PATH
so just their names can be used directly.
@abhinav
Copy link
Collaborator Author

abhinav commented Sep 13, 2023

I don't think any of this was tested on Windows. If CI fails on Windows, we should drop Windows support to unblock CI and the other PRs until the relevant issues are fixed.

@abhinav abhinav enabled auto-merge (squash) September 13, 2023 23:19
Copy link
Contributor

@sywhang sywhang left a comment

Choose a reason for hiding this comment

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

should we rename the PR?

@abhinav abhinav changed the title make: Fix pwd for Windows ci: Fix broken main Sep 13, 2023
@abhinav
Copy link
Collaborator Author

abhinav commented Sep 13, 2023

Yeah, did.

@abhinav abhinav enabled auto-merge (squash) September 13, 2023 23:25
@abhinav abhinav merged commit d288967 into uber-go:main Sep 14, 2023
3 checks passed
@abhinav abhinav deleted the ci-win branch September 14, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants