nikolaydubina / calendarheatmap

📅 Calendar heatmap inspired by GitHub contribution activity
https://calendarheatmap.io
MIT License
395 stars 17 forks source link

[BUG] can not open file with colorscales #16

Closed mlexs closed 3 years ago

mlexs commented 3 years ago

Well, I just followed the install instructions from the readme:

go install github.com/nikolaydubina/calendarheatmap@latest

and then:

cat my_file.json | calendarheatmap > my_heatmap.png

to only receive a fatal error: 2021/07/15 10:58:42 can not open file: open assets/colorscales/green-blue-9.csv: no such file or directory

nikolaydubina commented 3 years ago

Thanks, let me have a look.

nikolaydubina commented 3 years ago

Yes, I can repro. Will fix shortly.

nikolaydubina commented 3 years ago

Okay, so the issue is versions. v2 is not set properly for this module. Please clone and build from source. I will update in this ticket once this is solved. Thanks for flagging this!

nikolaydubina commented 3 years ago

Can you try again for installing @latest? You should get v1.5.0.

If it does not work, can you run bellow to verify versions you can see?

$ go list -m -versions github.com/nikolaydubina/calendarheatmap
github.com/nikolaydubina/calendarheatmap v1.0.0 v1.1.0 v1.1.1 v1.2.0 v1.3.0 v1.4.0 v1.4.1 v1.5.0

I retracted v2 for this project for now to reduce maintenance burden. API changes were not breaking and AFAIK we don't have anyone relying on packages from this module anyways.

Cheers,

nikolaydubina commented 3 years ago

Reopen Issue if it remains.

mlexs commented 3 years ago

It now works as expected! :tada: Thank you fixing it so quickly :+1:

[me@localhost]$ go list -m -versions github.com/nikolaydubina/calendarheatmap
github.com/nikolaydubina/calendarheatmap v1.0.0 v1.1.0 v1.1.1 v1.2.0 v1.3.0 v1.4.0 v1.4.1 v1.5.0