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

Latest builds failing with RegEx parsing issue #67

Closed
dend opened this issue Dec 23, 2021 · 5 comments
Closed

Latest builds failing with RegEx parsing issue #67

dend opened this issue Dec 23, 2021 · 5 comments
Labels
bug Something isn't working waiting-for-feedback

Comments

@dend
Copy link

dend commented Dec 23, 2021

See example job on OpenSearch:

Pattern syntax error near position 0: recursive wildcards must form a single path component

I've noticed the same problem on my own blog (private repository). Any thoughts on what might be causing it?

The job I am running is mapped to the following YAML file:

name: Link Checker

on:
  repository_dispatch:
  workflow_dispatch:
  schedule:
    - cron: "00 18 * * *"

jobs:
  linkChecker:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Load Excludes
        run: |
          LYCHEE_EXCLUDE=$(sed -e :a  -e 'N;s/\n/ /;ta' .lycheeexclude)
          echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV

      - name: Link Checker
        uses: lycheeverse/lychee-action@master
        with:
          args: --accept=200,429 --exclude ${{ env.LYCHEE_EXCLUDE }} --exclude-mail "**/*.md"
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
        
      - name: Create Issue From File
        uses: peter-evans/create-issue-from-file@v3
        with:
          title: Link Checker Report
          content-filepath: ./lychee/out.md
          labels: report, automated issue
@dend
Copy link
Author

dend commented Dec 23, 2021

So, as it turns out - something changes and the globs need not be wrapped in quotes. Not sure if this was documented/changed somewhere.

@vipulgupta2048
Copy link
Contributor

vipulgupta2048 commented Dec 24, 2021

Hey @dend I never had quotes on my globs but the parsing issue is still there. I don't see any errors on my run like you do. https://github.com/lycheeverse/lychee/issues/436

@dend
Copy link
Author

dend commented Dec 27, 2021

@vipulgupta2048 this worked in previous releases, and even affected OpenSearch, as linked below. Not saying that using quotation marks was the right approach, however something definitely changed in latest releases that resulted in using those breaking jobs 😄

@mre
Copy link
Member

mre commented Feb 6, 2022

This should be fixed in master now. Can you check again @dend or @vipulgupta2048?

@vipulgupta2048
Copy link
Contributor

The master version work. Looking forward to the release soon: #68 (comment)

@mre mre closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting-for-feedback
Projects
None yet
Development

No branches or pull requests

3 participants