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

Update to v0.15.4 #468

Merged
merged 11 commits into from
Aug 31, 2022
Merged

Conversation

sigma-andex
Copy link
Contributor

@sigma-andex sigma-andex commented Aug 22, 2022

Update pursuit to 0.15.4.

Apparently barrier, the library to render badges, is hopelessly outdated and doesn't work with GHC 9.2.3. I haven't found any replacement for rendering badges. Not sure if anyone wants to fork, update and maintain this library? Otherwise I would propose to drop badge support.

- Removes badges since this is unmaintained, doesn't work with 9.2.3 and
there is no alternative
@sigma-andex
Copy link
Contributor Author

@purefunctor could you check if my updates in src/SearchIndex.hs are correct?

src/SearchIndex.hs Outdated Show resolved Hide resolved
config/routes Outdated
@@ -10,7 +10,6 @@
/packages/#PathPackageName/#PathVersion/docs PackageVersionDocsR GET
/packages/#PathPackageName/#PathVersion/docs/#Text PackageVersionModuleDocsR GET
!/packages/#PathPackageName/docs/#Text PackageModuleDocsR GET
!/packages/#PathPackageName/badge PackageBadgeR GET
Copy link
Member

@purefunctor purefunctor Aug 23, 2022

Choose a reason for hiding this comment

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

I'm not actually sure we can drop badge support altogether. If I recall correctly, most of the packages within core make use of this for their READMEs. If we need to fork barrier to work with 9.2.3 then I could probably pick up that task.

Copy link
Member

Choose a reason for hiding this comment

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

Looks like it just needs its upper bound updated: purefunctor/barrier@79e8fc3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool, yeah that sounds doable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like Phil did the same thing a few years ago: philopon/barrier#4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok I guess we can try open a PR and see if we get a response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to extra-deps, but I can't get it to build.

Copy link
Member

Choose a reason for hiding this comment

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

Looking into it...

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I think I need to relax the bounds for bytestring in barrier: purefunctor/barrier@db5e27c

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks to @i-am-the-slime I got the stack build working as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@purefunctor if you move it to purescript-contrib I can update the dependencies. Apart fromt his I think it is good to go now

@@ -102,7 +102,6 @@ clearCache pkgName version = do
eachRouteDir
[ PackageVersionR pkgName' (PathVersion version)
, PackageAvailableVersionsR pkgName'
, PackageBadgeR pkgName'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be readded?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

uh yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

stack.yaml Outdated
Comment on lines 29 to 31
system-ghc: true
compiler: ghc-9.2.3
compiler-check: match-exact
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not familiar with stack.yaml in general. Why are these needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes that accidenily slipped into the commit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@purefunctor
Copy link
Member

Woops, CI breaks because I force pushed on my barrier fork 😅. Updating the commit hash to purefunctor/barrier@db5e27c should make this work.

@sigma-andex
Copy link
Contributor Author

Ok updated it to this commit

@sigma-andex
Copy link
Contributor Author

@JordanMartinez can you re-run the pipeline?

@JordanMartinez
Copy link
Contributor

@JordanMartinez can you re-run the pipeline?

Restarted. Sorry about the delay.

@sigma-andex
Copy link
Contributor Author

Next try :D

@sigma-andex
Copy link
Contributor Author

Ok I think now it should be good :D

@sigma-andex
Copy link
Contributor Author

Once this is good, it would be great to get #469 approved & merged as well and then do a deployment

@JordanMartinez
Copy link
Contributor

@garyb Assuming this builds, can I get another approval here? I'm not sure if @purefunctor's approval (if it was given) would count due to not being a core team member. If I'm wrong, feel free to correct me.

@sigma-andex
Copy link
Contributor Author

@garyb Assuming this builds, can I get another approval here? I'm not sure if @purefunctor's approval (if it was given) would count due to not being a core team member. If I'm wrong, feel free to correct me.

How about promoting @purefunctor to the core team so you can be sure about it? :)

@JordanMartinez JordanMartinez merged commit b9157da into purescript:master Aug 31, 2022
@JordanMartinez
Copy link
Contributor

Thanks all!

@sigma-andex sigma-andex deleted the update-to-v0.15.4 branch August 31, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants