question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--cwd` flag does not work

See original GitHub issue

Previously I was executing the following command with 3.1.x

cpy **/*.scss !**/*.stories.scss ../lib --parents --cwd=src

with a result similar to:

% ls lib/**/*.scss 
lib/Button/Button.scss
lib/ButtonLink/ButtonLink.scss
lib/Checkbox/Checkbox.scss

However, the 4.0 release doesn’t find any files to copy. This seems like a globbing problem.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:16
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
farfromrefugcommented, Apr 26, 2022

I face the same issue. 4.x is not working for me anymore. Had to rollback to 3.x

1reaction
jurijzahn8019commented, Jun 22, 2022

Hi there,

The current behavior i see is, that glob patterns must start with a posix path segment:

  • src/*.foo
  • ./*foo
  • ./**/*.foo

**/* will not work.

Possible fix could be

  • change glob pattern to start with some posix segment. (which i am doing 😄 )
  • cpy could do it internally
Read more comments on GitHub >

github_iconTop Results From Across the Web

"Active" flag for groups does not work / support deactivating ...
Client apps may choose to use this flag. What would be the intention of the deactivating a group in Crowd? does it mean...
Read more >
Experimental transmission of chronic wasting disease (CWD ...
Final observations on experimental transmission of chronic wasting disease (CWD) from elk (Cervus elaphus nelsoni) and white-tailed deer (Odocoileus ...
Read more >
subprocess — Subprocess management — Python 3.11.1 ...
This module does not work or is not available on WebAssembly platforms ... stdout=None, stderr=None, capture_output=False, shell=False, cwd=None, ...
Read more >
How to get cwd for relative paths? - Stack Overflow
Unfortunately -y will only print the path of file descriptors, and since your call doesn't load any it doesn't have one. A possible...
Read more >
CWD In Tennessee - Chronic Wasting Disease - TN.gov
At this time, there are no practical means of removing, inactivating, or mitigating prions in the environment, leaving the focus of management on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found