externals icon indicating copy to clipboard operation
externals copied to clipboard

Windows Error?

Open ovoice opened this issue 15 years ago • 2 comments

I've noticed that in windows, while working, it saves the tgz files god knows where and gives this error message. I'm not sure why the \ shows up trying to escape the colon.

E:/Agency/Clients/GAPCo/Code/gaa_project/tmp/acts_as_list.git.tgz: Cannot open: I/O error

ovoice avatar May 22 '09 15:05 ovoice

It looks like there is a special character here: http://github.com/winton/externals/blob/1d2525e1ae53002041d5ba87426b0e8a1b52e2b3/lib/externals/repository.rb#L35 and on lines 53 & 91. Changing these ` to " fixes this issue, even though the tgz files are not visble, it works.

ovoice avatar May 22 '09 15:05 ovoice

Hey Mario,

Surrounding a string in those special characters actually tells Ruby to execute that string as a system call. It is similar to using the system() call:

http://www.ruby-doc.org/core/classes/Kernel.html#M005982

The slash next to the colon does look odd. I don't have a PC, so anything you figure out helps a lot.

Thanks, Winton

winton avatar May 22 '09 17:05 winton