-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unstable modtimes #3139
Comments
Not 100% sure modtime is put into unixfs atm. What does git do in this regard? |
git does the same, it doesn't save modtimes, but the files in the working tree aren't immutable. |
I'm not sure that
makes sense. it may have weird bad edge cases. can we think of any?
Well, when you I hear you though, i want to make it nicer/easier. Let's just keep discussing options and pros/cons |
|
Agreed, let's do what git and nixos do?
|
Not sure what is being agreed to here. But for the record I would be against |
@kevina what issues do you have with setting the modtime to 0? |
@whyrusleeping this is an old issue but setting the modtime of files on disk after retrieving it with |
The metadata section of the spec has a section on applying metadata from a UnixFSv1.5 DAG to a non-IPFS target - it says that if the target requires an mtime value and no mtime value has been set in the DAG, that it should be set to This is to prevent inconsistencies in metadata, similar to the nixos approach outlined above. |
Will be fixed by #6920. |
Version/Platform/Processor information (from
ipfs version --all
):go-ipfs version: 0.4.3-dev-b5fbc01
Repo version: 4
System version: amd64/linux
Golang version: go1.6.2
Type (bug, feature, meta, test failure, question):
bug
Area (api, commands, daemon, fuse, etc):
commands
Priority (from P0: functioning, to P4: operations on fire):
Description:
ipfs get
andipfs get --archive
produce files with touched modtime.It would be more sensible to set these uniformly to unix time 0 (1.1.1970).
This would avoid receiving tarballs with unstable hashes and reflect better the immutability.
The text was updated successfully, but these errors were encountered: