Skip to content

Conversation

@yvan-sraka
Copy link
Collaborator

@yvan-sraka yvan-sraka commented Aug 11, 2025

This PR add a few commits on top of #1743

@yvan-sraka yvan-sraka requested a review from jfroche August 11, 2025 15:47
@yvan-sraka yvan-sraka self-assigned this Aug 11, 2025
@yvan-sraka yvan-sraka changed the title feat: add version 0.2.0 of wrappers extension feat: add older versions of the wrappers extension Aug 11, 2025
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from ecf641f to ff4cef2 Compare September 12, 2025 13:54
@yvan-sraka yvan-sraka changed the base branch from develop to custom-github-runners September 12, 2025 13:55
@yvan-sraka yvan-sraka force-pushed the custom-github-runners branch 16 times, most recently from 1eb74b8 to db1e5e4 Compare September 29, 2025 14:29
@jfroche jfroche force-pushed the custom-github-runners branch 8 times, most recently from 0878bd2 to b842e89 Compare October 3, 2025 10:53
@jfroche jfroche force-pushed the custom-github-runners branch 7 times, most recently from b500264 to 229115e Compare October 7, 2025 23:26
@yvan-sraka yvan-sraka force-pushed the custom-github-runners branch from 229115e to 4947f52 Compare October 8, 2025 17:52
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from ff4cef2 to 21ade98 Compare October 8, 2025 17:57
@yvan-sraka yvan-sraka changed the title feat: add older versions of the wrappers extension (WIP) feat: add older versions of the wrappers extension Oct 8, 2025
@yvan-sraka yvan-sraka requested a review from samrose October 8, 2025 17:58
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from 21ade98 to 8c1a800 Compare October 9, 2025 15:55
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from 8c1a800 to b8a95f8 Compare October 26, 2025 23:15
@yvan-sraka yvan-sraka changed the base branch from custom-github-runners to develop October 26, 2025 23:15
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from b8a95f8 to 8533f41 Compare October 28, 2025 09:25
@yvan-sraka yvan-sraka changed the title (WIP) feat: add older versions of the wrappers extension feat: add older versions of the wrappers extension Oct 28, 2025
@yvan-sraka yvan-sraka marked this pull request as ready for review October 28, 2025 09:28
@yvan-sraka yvan-sraka requested review from a team as code owners October 28, 2025 09:28
};
}
// lib.optionalAttrs (version == "0.3.0") {
patches = [ ./0001-bump-pgrx-to-0.11.3.patch ];
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do the same change for versions <= 0.3.0, maybe there is a way to have one condition here ?
I guess it will be the same for the older versions (0.1.7 -> 0.1.14) that are not here yet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually I didn't patch pgrx for older versions, and I consider even in the end to not patch it for 0.2.0 or 0.3.0 and to rather add more versions to nix/cargo-pgrx/versions.json, WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

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

If the whole block is the same (including the cargo lock file and/or the patch) for all versions <= 0.3.0 we should only have 1 block

Copy link
Collaborator

Choose a reason for hiding this comment

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

We might want to move it to nix/ext/scripts instead so that nix/ext only contains the extensions

@@ -0,0 +1,90 @@
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3 git nix-prefetch-git python3Packages.packaging

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a few lines of documentation on what is does and maybe an example of how we can use it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes indeed, should I put that in nix/docs/adding-new-package.md or nix/docs/update-extension.md or both?

Copy link
Collaborator

Choose a reason for hiding this comment

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

adding-new-package.md needs a complete rewrite, I would add it in update-extension.md first and do another PR/TODO for improving overall documentation (removing the old way) on how to create/update multi version extensions

@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch 2 times, most recently from 6f89146 to fa4bd0d Compare October 28, 2025 21:36
@yvan-sraka yvan-sraka force-pushed the multi-version-ext/wrappers-v0.2.0 branch from fa4bd0d to 6323605 Compare October 31, 2025 16:16
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.

3 participants