Skip to content

Conversation

@lucab
Copy link
Contributor

@lucab lucab commented Apr 3, 2017

PR #534 changed Created from string to time.Time field.
This neutered the omitempty property on it, as a missing
field is now populated as the default time.Time value.

This commit turns the field into a pointer, in order to keep
the empty-value semantic for omitempty.

Fixes #626

Signed-off-by: Luca Bruno [email protected]

PR opencontainers#534 changed Created from string to time.Time field.
This neutered the `omitempty` property on it, as a missing
field is now populated as the default time.Time value.

This commit turns the field into a pointer, in order to keep
the empty-value semantic for `omitempty`.

Fixes opencontainers#626

Signed-off-by: Luca Bruno <[email protected]>
@lucab
Copy link
Contributor Author

lucab commented Apr 3, 2017

/cc @jlbutler as #534 author

@lucab
Copy link
Contributor Author

lucab commented Apr 3, 2017

/cc @jonboulle @wking @stevvooe for an ad-hoc review, as per #625 (comment).

@jonboulle
Copy link
Contributor

jonboulle commented Apr 3, 2017

LGTM in itself; did you check for any other references to this field?

Approved with PullApprove

@lucab
Copy link
Contributor Author

lucab commented Apr 3, 2017

I grep'd this repo before commiting, and I haven't see anything else. The original PR also only touched those two lines. I don't know if there are any other repos dependent on this.

@stevvooe
Copy link
Contributor

stevvooe commented Apr 3, 2017

LGTM

Approved with PullApprove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants