-
Notifications
You must be signed in to change notification settings - Fork 91
Prepare v6.0.0 release (1st PS 0.15.0-compatible release) #292
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
Conversation
.github/workflows/ci.yml
Outdated
- uses: purescript-contrib/setup-purescript@main | ||
with: | ||
purescript: "unstable" | ||
purs-tidy: "stable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purs-tidy: "stable" | |
purs-tidy: "latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're automatically adding purs-tidy
as part of these releases (which I think we should do!) then we should also commit a standard .tidyrc.json
file. I'd recommend something like this:
{
"importSort": "ide",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you did do this, then it didn't get committed because of the .gitignore
file:
Line 1 in 5f1ba9f
/.* |
You'll want to append !/.tidyrc.json
and a newline to the end of the gitignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks. Fixed that in my script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My previous comment was for the stable
-> latest
fix, not the rest of this thread. Good point. I had forgotten about that.
Co-authored-by: Thomas Honeyman <[email protected]>
@thomashoneyman Anything else you see in this PR that is problematic? There might be a few issues still with some future PRs, but this is what the PRs will look like. |
I also think if purs-tidy is going to be used, it's very likely that you will want to commit operator files as well, so that the formatting is consistent with the operators defined in the libraries. I don't think you want to rely on whatever the default set is that's shipped with tidy, because it will be inconsistent with any changes you potentially make (like in |
No, I think this otherwise looks great! 👍 |
@natefaubion CI is failing because |
Last time I tried generating a |
Ha... Turns out the |
You should not use |
Since I'm running a PureScript script now, I decided to determine what the directories are and pass these in directly as args to |
Two questions I currently have about these scripts:
|
If they now run properly, then yep! |
They don't. We're still blocked by spago not having made a new release. |
I consider the default operator table as only a convenience for user code. There is no guarantee that what is shipped coincides with what your code is actually using. I personally think that all projects should generate operator files when:
|
Ok, if our goal is to get 0.15.0 out, I think we need to clarify "what must be done" vs "what we would like to do but can be done later". What must be done:
What we would like to do but can be done later:
Let me clarify:
Assuming readers are in agreement with me, the only thing blocking this PR is an agreement that no more compiler PRs are going to be merged. If we still plan to merge work into the compiler (e.g. VTAs PR), then this PR should wait. |
Oh, and here's another potential problem. Shouldn't Node be updated to 14 because 12 is almost EOF? https://github.com/purescript/purescript-prelude/blob/master/.github/workflows/ci.yml#L20= |
I agree with all the above. And because we aren’t using much in the way of Node features I think we can reasonably move to Node 16. But I’m happy with 14 too. |
Ok, the script has been updated to also change Node from 12 to 14 in CI. At this point, we need to decide what compiler PRs will get into 0.15.0 or not. Once those are all merged, we can start releasing here. |
@thomashoneyman Can this get an approval? |
Co-authored-by: Thomas Honeyman <[email protected]>
Description of the change
Backlinking to purescript/purescript#4244. Prepares project for first release that is compatible with PureScript v0.15.0.
🤖 This is an automated pull request to prepare the next release of this library. PR was created via the Release.purs file. Some of the following steps are already done; others should be performed by a human once the pull request is merged:
bower.json
file does not exist.purs-tidy
pulp publish
.