Dmitri Shuralyov

Results 869 comments of Dmitri Shuralyov

Can you share how you're using `vfsgen` right now? If so, it'll be easier for me to show you what I mean. If not, I can try to explain anyway...

Thanks. The relevant part in the snippet is here: ```Go vfsgen.Generate(http.Dir(*dir), ... ``` That means you're currently using [`http.Dir`](https://godoc.org/net/http#Dir) as the [`http.FileSystem`](https://godoc.org/net/http#FileSystem) interface implementation that you provide to [`vfsgen.Generate`](https://godoc.org/github.com/shurcooL/vfsgen#Generate). Your...

Have you read the documentation for `vfsgendev` at https://github.com/shurcooL/vfsgen#vfsgendev-usage? You may also need to read the section above, at https://github.com/shurcooL/vfsgen#go-generate-usage, since it’s being referenced. Let me know if something there...

Thanks for reporting. The problem is at https://kolaente.dev/vikunja/api/src/commit/79970ebb4a29f2450b40ebd4ce7acb0acf54f235/pkg/static/static.go#L17. That go generate directive is invoking `go run`. When you run `GOOS=freebsd GOARCH=amd64 go generate`, the `GOOS`/`GOARCH` environment variables are passed on...

Hi @jjeffery, thanks for your feedback on vfsgen, and for and creating this issue! I'd like to discuss this to better understand the problem and solution space, before we get...

(Sorry for the delay; I lost track of this issue and forgot to get back to you.) Thanks for providing that info. > Where I run into issues is when...

> It would literally write to disk and change modtimes of files on disk to the saved values. Just to follow up that thought, such code/tool doesn't have to write...

Sounds good, thanks! As I said in my previous comment, I'm okay to keep this open with `thinking` label and see track any progress we make towards resolving the problem,...

Thanks @dc0d. This issue is about some sort caching of file modify dates, for files that are not modified between invocations of vfsgen. Not app-layer HTTP caching. Although the two...

No problem! If you create that issue, we can discuss it further there.