ivpusic / neo

Go Web Framework
http://ivpusic.github.io/neo/
MIT License
420 stars 43 forks source link

cannot create directory at 'aux' #6

Closed dc0d closed 9 years ago

dc0d commented 9 years ago

When git wants to checkout it will show this error: fatal: cannot create directory at 'aux': Invalid argument. That's because aux is a reserved name on Windows.

ivpusic commented 9 years ago

Unfortunately I don't have and I don't use windows, but adding support for it would be great. Are you interested in contributing by adding support for win?

I think currently "aux" issue is the problem, and https://github.com/ivpusic/go-hotreload/blob/master/hr/pm.go#L21 "fuser" Unix specific command used by "go-hotreload" package.

ivpusic commented 9 years ago

http://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows -> this may be solution for "fuser" Unix command. And renaming aux and testing it on win should be trivial.

dc0d commented 9 years ago

Thanks for the nice neo! I've already forked neo and as soon as I feel happy about it (naturally restricted to my mind-frame & abilities) I'll make a pull request. The problem is the only way around it (AFAIK) is to use a name like _aux or misc instead of aux.

ivpusic commented 9 years ago

I refactored aux package. Look at https://github.com/ivpusic/neo/commit/c810caf4bcb013516921fd6342012f91e80c51e7 and https://github.com/ivpusic/neo/commit/8ba984f4b8adfe88eab666b356574d23e1c35a0c. So next step is to solve "fuser" thing on win.

dc0d commented 9 years ago

Thanks; I was thinking not everybody would be comfortable with renaming.

dc0d commented 9 years ago

I am not experiencing any problem with neo. But I've not tested the command line (thanks to the stork in charge of delivering me, around my area internet is a messed up thing - i.e. no access to gopkg; in this case, on the other end. But I'm on it). So this issue should be closed and fuser should be handled on another issue. I'll follow up the thing, but fuser should be handled in a very different way on Windows - watchers and the like; I've not used it ever either.

ivpusic commented 9 years ago

Yes, fuser issue is related to Neo hotreload (neo run main.go).

Thanks for reporting this one!