tadayosi opened a new issue, #3384:
URL: https://github.com/apache/camel-k/issues/3384
It makes sense to use a feature from standard library instead of relying on
a 3rd party library. Use of `go:embed` may also save us from periodical regens
of `resources.go` and unexpected issues due to its inconsistency.
The challenges for using `go:embed` I identified so far are:
- `go:embed` only allows embedding resources under its current dir. It's not
possible to load resources in an arbitrary dir from `pkg/resources`. That
should require you to put a `resources.go` under both `/config` and
`/resources` dirs.
- There is no easy way to ignore arbitrary files with `go:embed`. You can
only ignore `.*` and `_*` files automatically. We'd need to find a way to keep
the embedded resources clean and as minimum as possible.
- https://github.com/golang/go/issues/42328
- https://github.com/golang/go/issues/42325
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]