Skip to content

fix(makefile): make pa11y-install idempotent - #627

Merged
jahn-junior merged 4 commits into
canonical:mainfrom
bepri:work/fix-pa11y-install
Aug 20, 2026
Merged

fix(makefile): make pa11y-install idempotent#627
jahn-junior merged 4 commits into
canonical:mainfrom
bepri:work/fix-pa11y-install

Conversation

@bepri

@bepri bepri commented Aug 19, 2026

Copy link
Copy Markdown
Member
  • Have you updated CHANGELOG.md with relevant non-documentation file changes?
  • Have you updated the documentation for this change?

Fixes an issue where the pa11y-install target would always trigger a reinstall, even if pa11y was already available.

Tested the output locally by changing the pa11y-install target to echo $(firstword $(PA11Y_CMD)), which output _dev/node_modules/pa11y/bin/pa11y.js.

@dwilding dwilding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Please could you update CHANGES.md with a quick description of the fix and list this PR number after docs/Makefile - very similar to what https://github.com/canonical/sphinx-stack/pull/628/changes does.

Comment thread docs/Makefile Outdated

@jahn-junior jahn-junior left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TIL that this is platform-dependent. The original command -v target works fine on my machine, but test -x is nicer regardless.

Thanks for the fix!

@jahn-junior
jahn-junior merged commit 06644c9 into canonical:main Aug 20, 2026
8 checks passed
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.

docs/Makefile: pa11y-install check doesn't detect already-installed pa11y

3 participants