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

Change to new key handler #30

Merged
merged 27 commits into from
Nov 13, 2023
Merged

Change to new key handler #30

merged 27 commits into from
Nov 13, 2023

Conversation

u-fischer
Copy link
Member

This mainly switch to the new key handler and fixes a number of smaller issue, see changelog.

Copy link
Member

@davidcarlisle davidcarlisle left a comment

Choose a reason for hiding this comment

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

Looks good, inline query about version number though.
hyperref next?

xcolor.dtx Outdated Show resolved Hide resolved
Copy link

@muzimuzhi muzimuzhi left a comment

Choose a reason for hiding this comment

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

Mostly about newly added workflow.

# List the required TeX Live packages in a separate file to allow reuse in
# different workflows.
package_file: .github/tl_packages
- run: l3build install

Choose a reason for hiding this comment

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

Is this step necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

for all the comments about the action workflow: that was a quick copy and paste to have some external test runs at all and should be reviewed (also in tagpdf and pdfresources and hyperref) generally. This can be done later after a release.

xcolor.dtx Outdated Show resolved Hide resolved
Comment on lines +3 to +7
on:
push:
branches:
- "*"
- "!test*"

Choose a reason for hiding this comment

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

* can't match /, which might appear in a branch name from forks. Perhaps you want ** to match / too here. See latex3/latex3@62c5afe and related GitHub Actions doc.

And, need pull_request event here?

Suggested change
on:
push:
branches:
- "*"
- "!test*"
on:
push:
branches:
- "**"
- "!test**"
pull_request:

- run: l3build install
- run: l3build check
- name: Archive failed test output
if: ${{ always() }}

Choose a reason for hiding this comment

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

Maybe

Suggested change
if: ${{ always() }}
if: ${{ failure() }}

xcolor.dtx Outdated Show resolved Hide resolved
Comment on lines +11 to +12
outputs:
cache_key: ${{ steps.texlive.outputs.cache_key }}

Choose a reason for hiding this comment

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

Output cache_key is never used (and there's no step named texlive in current workflow).

Suggested change
outputs:
cache_key: ${{ steps.texlive.outputs.cache_key }}

Copy link
Member

Choose a reason for hiding this comment

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

Aren't a lot of these dependencies of other installs, so don't need to be listed?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, I simply copied a list from tagpdf (I think). That should be cleaned up.

ChangeLog Show resolved Hide resolved
testfiles/github-023.lvt Outdated Show resolved Hide resolved
xcolor.dtx Outdated Show resolved Hide resolved
xcolor.dtx Outdated Show resolved Hide resolved
xcolor.dtx Outdated
Comment on lines 3599 to 3600
\IfFormatAtLeastTF{2022/06/01}{}{\RequirePackageWithOptions{xcolor-2022-06-12}}
\IfFormatAtLeastTF{2022/06/01}{}{\endinput}
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't this be one conditional with the payload in two lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think not, at least the newline wouldn't count, wouldn't it? I think it is safer to have this in two commands.

xcolor.dtx Outdated Show resolved Hide resolved
xcolor.dtx Outdated Show resolved Hide resolved
Comment on lines +4085 to 4093
,xcdraw .code = {\def\XC@@xcd@{1}}
,xcdraw .usage = load %TODO check
,noxcdraw .code = {\def\XC@@xcd@{-1}}
,noxcdraw .usage = load %TODO check
,fixinclude .code = {\def\XC@@xcf@{1}}
,fixinclude .usage = load %TODO check
,prologue .code = {\def\XC@@xcp@{1}}
,prologue .usage = load %TODO check
% \end{macrocode}
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need to do anything for any of these today?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know (thats why there is a todo everywhere), but I think that should be discussed with the next version and not now.

xcolor.dtx Outdated Show resolved Hide resolved
@u-fischer u-fischer merged commit 7b1e72b into main Nov 13, 2023
1 check passed
@u-fischer u-fischer deleted the changekeyhandler branch September 17, 2024 15:27
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