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

AUX should not be used as name of file or directory as it is reserved name in Windows #10

Open
kacperrzepecki opened this issue Dec 7, 2024 · 0 comments

Comments

@kacperrzepecki
Copy link

Hi,
You have two folders named "aux":

  • lib/src/daily/aux
  • test/aux

aux is reserved word in Windows and should not be used as name of a file or directory.
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN

Do not use the following reserved names for the name of a file:

CON, PRN, AUX, NUL, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM¹, COM², COM³, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, LPT¹, LPT², and LPT³. Also avoid these names followed immediately by an extension; for example, NUL.txt and NUL.tar.gz are both equivalent to NUL.

Here is more explanation on why that is the case:
https://stackoverflow.com/questions/61614004/cloning-succeded-but-checkout-failed-due-to-invalid-path-what-is-the-path-probl

Impact:

  1. At the moment the repository cannot be checked out on windows:

C:\gitrepos>git clone https://github.com/ivofernandes/yahoo_finance_data_reader.git
Cloning into 'yahoo_finance_data_reader'...
remote: Enumerating objects: 728, done.
remote: Counting objects: 100% (728/728), done.
remote: Compressing objects: 100% (424/424), done.
remote: Total 728 (delta 346), reused 588 (delta 207), pack-reused 0 (from 0)
Receiving objects: 100% (728/728), 1.09 MiB | 2.76 MiB/s, done.
Resolving deltas: 100% (346/346), done.
error: invalid path 'lib/src/daily/aux/join_prices.dart'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

  1. It also causes pub get to fail as reported here, however this one seems to work at least on some windows environments - I am a bit unsure if this is 100% related
    https://stackoverflow.com/questions/79197058/now-able-to-add-the-yfinance-flutter-package-yahoo-finance-data-reader
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

No branches or pull requests

1 participant