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

[BUG] Error: xargs: unmatched single quote #169

Closed
2 tasks done
fernandobrito opened this issue Aug 27, 2021 · 3 comments · Fixed by #174
Closed
2 tasks done

[BUG] Error: xargs: unmatched single quote #169

fernandobrito opened this issue Aug 27, 2021 · 3 comments · Fixed by #174
Labels
bug Something isn't working

Comments

@fernandobrito
Copy link

fernandobrito commented Aug 27, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug?

I get the following error sometimes:

xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

To Reproduce

I haven't had time to try to reproduce it locally. I'm first posting here to check if this is a known issue or if someone else already had it before I spend more time troubleshooting it (I'm a bash novice).

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

There should be no errors.

Relevant log output

Run tj-actions/changed-files@2f8c46f9d79d979656108f4fc4414c378ee4abed
  with:
    files: ^transform/snowflake-dbt/.*
  
    base_sha: 01f529cacb2dff32b9a54cf946dce1c74c039a5a
    sha: c6e8af0e7208d28653aab87352c9d5f81cc7742b
    token: ***
    separator:  
  env:
    SNOWSQL_ACCOUNT: ***
    SNOWSQL_USER: ***
    SNOWSQL_PWD: ***
    SNOWSQL_WAREHOUSE: dbt_ci_wh
changed-files
  Getting HEAD info...
  From https://github.com/voiapp/data-pipelines
   * [new branch]        master     -> master
   * [new branch]        master     -> origin/master
  Retrieving changes between 01f529cacb2dff32b9a54cf946dce1c74c039a5a (master) → c6e8af0e7208d28653aab87352c9d5f81cc7742b (backfill_MRS_vehicle_not_available)
  Checking for file changes: "^transform/snowflake-dbt/.*"...
  Added files: 
  Copied files: 
  Deleted files: 
  Modified files: transform/snowflake-dbt/models/analytics/magic_ride_session.sql transform/snowflake-dbt/models/model/engineering/user_experience/start_ride_attempt.sql
  Renamed files: 
  Type Changed files: 
  Unmerged files: 
  Unknown files: 
  All changed files: transform/snowflake-dbt/models/analytics/magic_ride_session.sql transform/snowflake-dbt/models/model/engineering/user_experience/start_ride_attempt.sql
  All modified files: transform/snowflake-dbt/models/analytics/magic_ride_session.sql transform/snowflake-dbt/models/model/engineering/user_experience/start_ride_attempt.sql
  xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
  Error: Process completed with exit code 1.

Anything else?

Great project, thanks for maintaining it! Very useful.

For security reasons, I have to hardcode the commit SHAs of external GitHub Actions. The one I'm using for this report is 2f8c46f, which is the equivalent of v9.3.

Screenshot of the error: image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fernandobrito fernandobrito added the bug Something isn't working label Aug 27, 2021
@github-actions
Copy link
Contributor

Thanks for reporting this issue.

@fernandobrito fernandobrito changed the title [BUG] xargs: unmatched single quote [BUG] Error: xargs: unmatched single quote Aug 27, 2021
jackton1 added a commit that referenced this issue Aug 28, 2021
@fernandobrito
Copy link
Author

Hi @jackton1, thanks a lot for the quick action, really appreciated! I will give the newly released version a try next week.

I have an automation that makes a "backup" of some configuration files from external systems into my repository and it uses the original names from the source systems to create folders and files. Now I realize that this automation indeed created files and folders with quotes on the names:

image

@jackton1
Copy link
Member

@fernandobrito Okay that makes sense, glad you found the root cause let me know if the error still persist.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants