wolfeidau / hotwire-golang-website

This project provides some working examples using Go and Hotwire Turbo.
Apache License 2.0
207 stars 16 forks source link

cannot load embed: malformed module path "embed": missing dot in first path element #3

Closed Gys closed 3 years ago

Gys commented 3 years ago

Hi!

If I run make start then I get this error:

...
go: finding golang.org/x/text v0.3.3
go: finding github.com/rs/zerolog v1.20.0
go: finding github.com/wolfeidau/echo-middleware v1.1.0
build command-line-arguments: cannot load embed: malformed module path "embed": missing dot in first path element
make: *** [start] Error 1

Any idea why this fails?

wolfeidau commented 3 years ago

@Gys you need to have Go 1.16 RC1 installed to run this at the moment.

Given I am only using this in ONE place https://github.com/wolfeidau/hotwire-golang-website/blob/master/views/views.go#L7 I should go back to the stable way.

Will do a PR later to fix this.

wolfeidau commented 3 years ago

@Gys turns out it was a quick fix to remove so done 🎉

I should know that publishing an example site using unreleased stuff would be unwise 😅

Gys commented 3 years ago

I am still on go 1.13.15 so that explains it. Thanks for the update! Works now.