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

Some files have names incompatible with Windows #2899

Closed
zrisher opened this issue Sep 20, 2017 · 3 comments
Closed

Some files have names incompatible with Windows #2899

zrisher opened this issue Sep 20, 2017 · 3 comments
Labels
bug For issues that describe a defect or regression in the released software help wanted For issues that have a clear solution described and are not currently prioritized core team work verified reproducible For issues that describe bugs that the core team was able to confirm

Comments

@zrisher
Copy link

zrisher commented Sep 20, 2017

Expected behavior

On Windows 10, when I run git status within a freshly created (or freshly updated) reaction app, I should see no changes and receive "Already up-to-date."

Actual Behavior

Instead, after running git status I get this output:

c:\apps\..\..\some_app>git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       imports/test-utils/__mocks__/meteor/alanning
#       imports/test-utils/__mocks__/meteor/gadicc
#       imports/test-utils/__mocks__/meteor/kadira
#       imports/test-utils/__mocks__/meteor/tmeasday
nothing added to commit but untracked files present (use "git add" to track)

If I remove these extraneous files instead I encounter:

c:\apps\..\..\some_app>git status
# On branch master
# Changes not staged for commit:
#   (use "git add/rm <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       deleted:    imports/test-utils/__mocks__/meteor/alanning:roles.js
#       deleted:    imports/test-utils/__mocks__/meteor/gadicc:blaze-react-component.js
#       deleted:    imports/test-utils/__mocks__/meteor/kadira:dochead.js
#       deleted:    imports/test-utils/__mocks__/meteor/tmeasday:publish-counts.js
#
no changes added to commit (use "git add" and/or "git commit -a")

Steps to Reproduce the Behavior

On Windows, reaction init, cd reaction, git status.

Versions

Node: 6.9.2
NPM: 5.4.1
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.11.0
Reaction: 1.4.2
Reaction branch: master

Root Issue

I believe this occurs because the imports/test-utils/__mocks__/meteor folder contains files with colons in their names, e.g. alanning:roles.js. The windows file system does not support colons in file names, and thus Windows users will never be able to match master wrt these files. I believe Git fails to create these files after pulling, and meteor creates them but drops the colon and everything following it from the name.

@aaronjudd
Copy link
Contributor

aaronjudd commented Sep 20, 2017

We have a proposed update generally for naming conventions, still under review: reactioncommerce/reaction-docs#241, that I hope addresses any internal instances that may be an issue for the application codebase (running on Windows). Input welcome. Our goal is to run through the marketplace and update naming that might be incompatible.

Thanks for the research on this, it's a complicated issue -> Meteor chose this standard of using a org:package and they resolve this when transpiling on windows, but we needed to mock them out for jest, and had to use the package name as it's known to Meteor. If this were a blocker for you, you could ignore or deleted that folder, and not use jest tests. Those files are not using in the application code.

@aaronjudd aaronjudd added bug For issues that describe a defect or regression in the released software meteor verified reproducible For issues that describe bugs that the core team was able to confirm labels Sep 20, 2017
@zrisher
Copy link
Author

zrisher commented Sep 20, 2017

@aaronjudd Thanks for the quick reply! I haven't been blocked by this issue yet, though I expect it may happen since various git commands cannot be run with a dirty branch, and there is literally no way to get my master branch to contain the committed files. But currently this is not a high-priority issue for me, and I'm glad progress is being made upstream.

@spencern spencern added the help wanted For issues that have a clear solution described and are not currently prioritized core team work label Oct 4, 2017
@aldeed
Copy link
Contributor

aldeed commented Feb 28, 2020

I believe the files referred to here are no longer part of Reaction. Even if they are, development on Windows is no longer officially supported. That said, anyone encountering this is free to submit a pull request with a fix.

@aldeed aldeed closed this as completed Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For issues that describe a defect or regression in the released software help wanted For issues that have a clear solution described and are not currently prioritized core team work verified reproducible For issues that describe bugs that the core team was able to confirm
Projects
None yet
Development

No branches or pull requests

4 participants