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

Spaces in path names cause makefile to fail #35

Open
alanjds opened this issue Aug 21, 2018 · 3 comments
Open

Spaces in path names cause makefile to fail #35

alanjds opened this issue Aug 21, 2018 · 3 comments
Labels
imported Imported from google/grumpy

Comments

@alanjds
Copy link

alanjds commented Aug 21, 2018

google#236 opened by @drgrib on 4 Feb 2017

If there is a space in the path to grumpy, there will be a long chain of errors of the type found here on make:

IOError: [Errno 2] No such file or directory: 'grumpyTest/grumpy/third_party/stdlib:/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8'
build/src/grumpy/lib/itertools/module.go:4: can't find import: "grumpy/lib/_collections"
make: *** [build/pkg/darwin_amd64/grumpy/lib/itertools.a] Error 1

Specifically, the makefile is transforming the path from

/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8 grumpyTest/grumpy/third_party/stdlib

(notice the space after the 8) to

grumpyTest/grumpy/third_party/stdlib:/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8

Changing the name of the offending folder from 8 grumpyTest to 8-grumpyTest relieved the error. You may want to make your makefile more robust for spaces in paths, though.

@alanjds
Copy link
Author

alanjds commented Aug 21, 2018

Comment by vbmade2000
Saturday Mar 25, 2017 at 15:00 GMT


@drgrib Can you share the steps to reproduce same issue ?

@alanjds
Copy link
Author

alanjds commented Aug 21, 2018

Comment by drgrib
Saturday Mar 25, 2017 at 17:22 GMT


@vbmade2000 I wish I could. It has been a long time since I used Grumpy and I have switched the language of my project to Go.

I can tell you that the only step required to reproduce that I think is important is that Grumpy is unzipped to a directory that has spaces in the name of one of the parent folders and then to call make on the primary Grumpy directory.

@alanjds
Copy link
Author

alanjds commented Aug 21, 2018

Comment by vbmade2000
Sunday Mar 26, 2017 at 05:25 GMT


I see. I'll try to reproduce same.

@alanjds alanjds added the imported Imported from google/grumpy label Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported Imported from google/grumpy
Projects
None yet
Development

No branches or pull requests

1 participant