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

make_linux_app is creates more and more files each time #19

Closed
dten opened this issue Apr 20, 2017 · 11 comments
Closed

make_linux_app is creates more and more files each time #19

dten opened this issue Apr 20, 2017 · 11 comments

Comments

@dten
Copy link
Contributor

dten commented Apr 20, 2017

make_linux_app copies the root of a project into target/deps/dinghy/dinghy for some reason

it also copies target, which contains the previous copy, so now you have two, next time you'll have three, and so on.

not sure best way to fix it but thought i'd let you know :)

@kali
Copy link
Collaborator

kali commented Apr 20, 2017

that's interesting indeed :) I'll have a look soon-ish. Thanks :)

@dten
Copy link
Contributor Author

dten commented Apr 20, 2017

this line is doing the same for ios apps and it's causing me to hit max path https://github.com/snipsco/dinghy/blob/master/src/ios/xcode.rs#L39

commenting out that line and it's alive again

@kali
Copy link
Collaborator

kali commented Apr 21, 2017

Ok, by any chance, do you happen not to have a .gitignore file around that skips target ? I think this is the reason why you got in trouble, as dinghy uses https://docs.rs/ignore/0.1.9/ignore/ to guess what to copy (to target/ first, and then to the device).

Removing it on one of my project leads to absurd behaviour of a different kind, but still aberrant (infinite loop while copying stuff in target).

I think the best way to go is a fix that explicitely ignores target/, but it would be nice if you could confirm the absence of .gitignore in your project.

@dten
Copy link
Contributor Author

dten commented Apr 21, 2017

I don't have one because that project uses hg not git
Guess I'll do more yak shaving and add hg support to ignore :p
I think for people who use other things though target should definitely be filtered regardless

@kali
Copy link
Collaborator

kali commented Apr 21, 2017

yep, doing that right now.

@kali
Copy link
Collaborator

kali commented Apr 21, 2017

thanks for confirming the bug

@dten
Copy link
Contributor Author

dten commented Apr 21, 2017

Why does the android one copy the files by the way? I don't see that it does anything with them.

@kali
Copy link
Collaborator

kali commented Apr 21, 2017

you do not require them per se... but many times, tests rely on the presence of test data in a separate file that is read by the test.
So the strategy is to copy the project code in a predictable place, and have the test checking the environment to know where to look for.

@kali
Copy link
Collaborator

kali commented Apr 21, 2017

i have pushed a 0.2.8 that will always ignore /target/. I'm pretty sure this will bite me some day, but I'll deal with it at that time :)

@dten
Copy link
Contributor Author

dten commented Apr 21, 2017

well it gets further, but i get a failure trying to run the tests on android cause dinghy is a dir not an executable

@dten
Copy link
Contributor Author

dten commented Apr 21, 2017

if you're looking at this don't worry. i was working on a PR and have fixed it in that :)

@dten dten closed this as completed Apr 21, 2017
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

2 participants