opnsense / tools

OPNsense release engineering toolkit
https://opnsense.org/
BSD 2-Clause "Simplified" License
279 stars 206 forks source link

Git clone will fail on Windows (use of reserved name aux) #431

Open planetrocky opened 2 months ago

planetrocky commented 2 months ago

aux is a reserved name on Windows, and so a clone/checkout of OPNsense tools will fail.

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

I use many different platforms, and it's useful to be able to seamlessly develop from any platform.

$ git.exe clone -v -- "git@github.com:opnsense/tools.git" "opnsense-tools"
Cloning into 'opnsense-tools'...
remote: Enumerating objects: 13272, done.
remote: Counting objects: 100% (1661/1661), done.
remote: Compressing objects: 100% (609/609), done.
remote: Total 13272 (delta 1001), reused 1326 (delta 910), pack-reused 11611 (from 1)
Receiving objects: 100% (13272/13272), 10.97 MiB | 19.60 MiB/s, done.
Resolving deltas: 100% (8251/8251), done.
error: invalid path 'config/24.7/aux.conf'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
fichtner commented 2 months ago

This certainly is very unfortunate.

fichtner commented 2 months ago

My colleague told me you should install WSL (windows linux subsystem) and use that to check out all the repositories. There's probably no gain from tools.git being on a windows host system in the first place.

In order to build and develop you need a FreeBSD system at the very least, or better yet a full OPNsense system.

Cheers, Franco