dcd icon indicating copy to clipboard operation
dcd copied to clipboard

Windows build fails

Open ChrisJefferson opened this issue 7 months ago • 2 comments

Build fails on windows, due to issues with gocodewalker. What confuses me (I'm not a go expert!) is it looks like this bug was known, and fixed, over in gocodewalker some time ago, so I'm not positive what is wrong. Here is my output:

C:\Users\caj>go install github.com/boyter/dcd@latest
go: downloading github.com/boyter/dcd v1.1.0
go: downloading github.com/spf13/cobra v1.0.0
go: downloading github.com/boyter/gocodewalker v1.1.0
go: downloading github.com/mfonda/simhash v0.0.0-20151007195837-79f94a1100d6
go: downloading golang.org/x/text v0.3.3
go: downloading github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/inconshreveable/mousetrap v1.0.0
# github.com/boyter/gocodewalker
go\pkg\mod\github.com\boyter\[email protected]\file.go:294:23: cannot use file (variable of interface type os.DirEntry) as os.FileInfo value in argument to IsHidden: fs.DirEntry does not implement fs.FileInfo (missing method ModTime)
go\pkg\mod\github.com\boyter\[email protected]\file.go:431:23: cannot use dir (variable of interface type os.DirEntry) as os.FileInfo value in argument to IsHidden: fs.DirEntry does not implement fs.FileInfo (missing method ModTime)

ChrisJefferson avatar Jun 16 '25 10:06 ChrisJefferson

Ah probably need to update. Looking into it.

boyter avatar Jun 17 '25 21:06 boyter

OK updated to the latest version of gocodewalker. Please pull the latest and build again, should be resolved.

I didn't look, but from memory its due to gocodewalker having logic to check for hidden files, which is of course difference between windows and unix. I think I screwed it up there, and since I rarely use windows these days never caught the issue.

Let me know how that goes.

boyter avatar Jun 17 '25 21:06 boyter