hound icon indicating copy to clipboard operation
hound copied to clipboard

make ui does not work with golang 1.18

Open kinghrothgar opened this issue 2 years ago • 0 comments

As far as I can tell, make ui no longer works with modern version of golang (1.18/1.17/1.16):

$ make ui
GOPATH=`pwd`/.build go get github.com/go-bindata/go-bindata/...
rsync -r ui/assets/* .build/ui
npx webpack -p
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Hash: 97f213c11b047adfbd2f
Version: webpack 4.41.6
Time: 375ms
Built at: 07/01/2022 5:42:51 PM
                  Asset      Size  Chunks             Chunk Names
ui/js/excluded_files.js  4.27 KiB       0  [emitted]  ui/js/excluded_files.js
         ui/js/hound.js  17.5 KiB       1  [emitted]  ui/js/hound.js
Entrypoint ui/js/hound.js = ui/js/hound.js
Entrypoint ui/js/excluded_files.js = ui/js/excluded_files.js
[0] ./ui/assets/js/common.js 2.18 KiB {0} {1} [built]
[1] ./ui/assets/js/hound.js 28.1 KiB {1} [built]
[2] ./ui/assets/js/excluded_files.js 3.96 KiB {0} [built]
.build/bin/go-bindata -o ui/bindata.go -pkg ui -prefix .build/ui -nomemcopy .build/ui/...
make: .build/bin/go-bindata: No such file or directory
make: *** [ui/bindata.go] Error 1

I don't believe this command works anymore:

.build/bin/go-bindata:
	GOPATH=`pwd`/.build go get github.com/go-bindata/go-bindata/...

Running that does not result in REPO/.build/bin/go-bindata being created. I tried it with version 1.16-1.18.

kinghrothgar avatar Jul 01 '22 23:07 kinghrothgar