I am trying to install chromaticity on my own machine for testing, and no matter what i do i will always hit the error seen in this picture installation error I dont know why it happened i tried searching but i found nothing online. my question is does anyone know why it happens? or can point me to the right direction? i have checked the folders and yes there are no GO files in there but i dont see why that is a problem
The api could be found here: https://github.com/evq/chromaticity
This is not an issue (as in bug) on the project, rather an issue due to lack of documentation on how to build the project itself.
If you look at the Makefile
file on the root directory, you'll notice that static/static.go
is a generated file as part of the build process. Such file is usually not committed to the repo so you'll need to build it yourself. To do so, you'll need to have go-bindata
installed.
Here's what you need to do in order to build the project successfully:
Get the go-bindata
package
go get -u github.com/jteeuwen/go-bindata/...
Get the project
go get github.com/evq/chromaticity
Go the project root directory
cd [...the chromaticity project root..]
Run make
to generate the static/static.go
file
make
Build/ install the project
go install
Update:
Noticed from your screenshot that you're using Windows
, in that case you may need to workaround the issue of running Makefile
in Windows
. See here for possible solution: How to run a makefile in Windows?
I've run into the same issue when trying to "get" and then install this project. I looked into the code and there is no trace of Asset()
function in github.com/evq/chromaticity/static
. Moreover git history does not show any .go files in static/
directory. Personally, I would create issue in the project and/or look for different repo containing desired functionality.