UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update timestamp only if there are other changes

sharpner opened this issue · comments

commented

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/"

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.

commented

works like a charm!

Thank you for the quick response and the fix :)