Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Fix TypeError: program.option is not a function #38

Conversation

marcindulak
Copy link
Contributor

Fixes #37

This is a similar fix to SAP/spartacus#10327
I don't understand why I'm unable to reproduce the problem locally in asciidoc-link-checker repo and only when using the repo as a pre-commit hook in another repo, but this change appears to fix the error in pre-commit.

The functionality of this change is demonstrated in two github action runs
a. error (TypeError: program.option is not a function) before this change https://github.com/marcindulak/asciidoc-link-check-37/actions/runs/8121376916
b. success (error due to a dead link) using this change https://github.com/marcindulak/asciidoc-link-check-37/actions/runs/8121382475

@ldynia
Copy link

ldynia commented Mar 5, 2024

@gaurav-nelson I vote for this PR to be merged :)

@gaurav-nelson gaurav-nelson merged commit d98b0c7 into gaurav-nelson:master Apr 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

asciidoc-link-check in pre-commit gives TypeError: program.option is not a function
3 participants