UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
MIT License
634 stars 53 forks source link

Update timestamp only if there are other changes #18

Closed sharpner closed 6 years ago

sharpner commented 6 years ago

Hi!

Is there a way to make the asset generation idempotent so that it won't update the timestamp in the assets file if there are no other changes within the data?

My configuration looks like this:

pkg: assets
dest: "."
fmt: true
output: assets.go
updater:
  enabled: false
custom:
  - files:
    - "./data/*.jpeg"
    base: "./data/"
UnnoTed commented 6 years ago

Sorry, didn't mean to close it.

Check the changelog: https://github.com/UnnoTed/fileb0x/blob/master/CHANGELOG.md

run

go get -u github.com/UnnoTed/fileb0x

and check if it's ok now, it shouldn't be changing anything if no changes to the files or config has been made.

sharpner commented 6 years ago

works like a charm!

Thank you for the quick response and the fix :)