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

MueLu: File named "aux" prevents successful Trilinos clone on Windows #10993

Closed
dc-snl opened this issue Sep 6, 2022 · 2 comments · Fixed by #11001
Closed

MueLu: File named "aux" prevents successful Trilinos clone on Windows #10993

dc-snl opened this issue Sep 6, 2022 · 2 comments · Fixed by #11001
Assignees
Labels
pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests

Comments

@dc-snl
Copy link
Contributor

dc-snl commented Sep 6, 2022

Bug Report

@trilinos/MueLu

Description

There's a file named aux in the MueLu source tree, causing this issue when cloning on Windows:

C:\TEMP>git clone https://github.com/trilinos/Trilinos.git source/Trilinos
Cloning into 'source/Trilinos'...
remote: Enumerating objects: 1219101, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 1219101 (delta 7), reused 13 (delta 2), pack-reused 1219069Receiving objects: 100% (1219101/1219101), 741.
Receiving objects: 100% (1219101/1219101), 745.12 MiB | 8.50 MiB/s, done.

Resolving deltas: 100% (924098/924098), done.
error: invalid path 'packages/muelu/research/caglusa/1d-binary-global/aux'
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 :/'

See also: https://stackoverflow.com/questions/61614004/cloning-succeded-but-checkout-failed-due-to-invalid-path-what-is-the-path-probl

The problem is Windows

Windows cannot handle any file named AUX. You can't name a file PRN or CON or COM1 either.

According to the linked article,

Microsoft provides an official list of reserved file names, and here they are:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

Note that you can’t use these file names with any file extension. So you can’t name a file “con.txt”, “con.jpg”, “or “con.doc”. And Windows isn’t case sensitive, so it doesn’t matter whether it’s CON, con, or CoN—Windows won’t let you use that name.

Steps to Reproduce

  1. SHA1: ff31d99
  2. Simply try to clone on Windows.
@dc-snl dc-snl added the type: bug The primary issue is a bug in Trilinos code or tests label Sep 6, 2022
@cgcgcg cgcgcg self-assigned this Sep 6, 2022
@dc-snl
Copy link
Contributor Author

dc-snl commented Sep 6, 2022

I should note that there are other files with aux at the beginning of their file name that seem to cause this issue:

C:\TEMP\source\Trilinos>git checkout 94795d780d8908bb96b60b66d08e2cd59dba2fd5
error: invalid path 'packages/muelu/research/caglusa/1d-binary-global/aux'
error: invalid path 'packages/muelu/research/caglusa/1d-binary-local/aux.4.0'
error: invalid path 'packages/muelu/research/caglusa/1d-binary-local/aux.4.1'
error: invalid path 'packages/muelu/research/caglusa/1d-binary-local/aux.4.2'
error: invalid path 'packages/muelu/research/caglusa/1d-binary-local/aux.4.3'
error: invalid path 'packages/muelu/research/caglusa/1d-mm-global/aux'
error: invalid path 'packages/muelu/research/caglusa/1d-mm-local/aux.4.0'
error: invalid path 'packages/muelu/research/caglusa/1d-mm-local/aux.4.1'
error: invalid path 'packages/muelu/research/caglusa/1d-mm-local/aux.4.2'
error: invalid path 'packages/muelu/research/caglusa/1d-mm-local/aux.4.3'
error: invalid path 'packages/muelu/research/caglusa/aux.xml'

@cgcgcg cgcgcg linked a pull request Sep 14, 2022 that will close this issue
@cgcgcg
Copy link
Contributor

cgcgcg commented Sep 16, 2022

Fixed on develop.

@cgcgcg cgcgcg closed this as completed Sep 19, 2022
@jhux2 jhux2 added this to MueLu Aug 12, 2024
@jhux2 jhux2 moved this to Done in MueLu Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants