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: Replace j2cli with jinjanator in GitHub workflows #183

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

0xFelix
Copy link
Contributor

@0xFelix 0xFelix commented Oct 31, 2023

What this PR does / why we need it:

j2cli is unmaintained and no longer works with python3.12. It is therefore replaced with an active fork called jinjanator.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer (optional):

@0xFelix 0xFelix requested a review from maiqueb as a code owner October 31, 2023 13:00
@@ -15,7 +15,8 @@ jobs:
python-version: 3.x

- run: |
pip3 install --user --upgrade j2cli
pip3 install --user --upgrade jinjanator
ln -s ~/.local/bin/jinjanate ~/.local/bin/j2
Copy link
Member

Choose a reason for hiding this comment

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

nice, why soft link and not replace line on j2 ?

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 didn't want to break local workflows for now. There also an issue on jinjanator to make it a drop-in replacement: kpfleming/jinjanator#25

Copy link
Member

Choose a reason for hiding this comment

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

can you pin some python version meanwhile ? i.e 3.11 ?

j2cli is unmaintained and no longer works with python3.12. It is
therefore replaced with an active fork called jinjanator.

The improper use of the '-e' flag on the j2 binary is fixed. Since the
env is used as data source there is also no need to import variables
explicitly again.

Signed-off-by: Felix Matouschek <[email protected]>
@maiqueb maiqueb merged commit 98d3bea into k8snetworkplumbingwg:main Oct 31, 2023
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