Skip to content

Replace uuid dependency with internal library#556

Merged
stevvooe merged 1 commit intodistribution:masterfrom
stevvooe:remove-uuid-dependency
May 26, 2015
Merged

Replace uuid dependency with internal library#556
stevvooe merged 1 commit intodistribution:masterfrom
stevvooe:remove-uuid-dependency

Conversation

@stevvooe
Copy link
Collaborator

cc @tiborvass @dmcgowan

Signed-off-by: Stephen J Day stephen.day@docker.com

uuid/uuid.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels weird to have a logrus dependency in a uuid package. How about having a global variable that defaults to func(msg string) { fmt.Fprintln(os.Stderr, msg) } ? clients can then change it in their init() functions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk.

@stevvooe stevvooe force-pushed the remove-uuid-dependency branch from d3e1a35 to 583e6bc Compare May 22, 2015 23:20
uuid/uuid.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loggerf

@stevvooe stevvooe force-pushed the remove-uuid-dependency branch from 583e6bc to 422a404 Compare May 22, 2015 23:24
@tiborvass
Copy link
Contributor

LGTM

@stevvooe
Copy link
Collaborator Author

cc @NathanMcCauley

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this error be logged?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is just a validation.

@dmcgowan
Copy link
Collaborator

LGTM

Signed-off-by: Stephen J Day <stephen.day@docker.com>
@stevvooe stevvooe force-pushed the remove-uuid-dependency branch from 422a404 to 36e34a5 Compare May 23, 2015 01:59
@stevvooe
Copy link
Collaborator Author

Added retry backoff and restricted to EPERM. Will panic after 450ms of try to get entropy.

@NathanMcCauley
Copy link

LGTM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the trailing spaces should be here, otherwise you might be testing the wrong thing.

@tiborvass
Copy link
Contributor

LGTM

stevvooe added a commit that referenced this pull request May 26, 2015
Replace uuid dependency with internal library
@stevvooe stevvooe merged commit a3006e8 into distribution:master May 26, 2015
@stevvooe stevvooe deleted the remove-uuid-dependency branch May 26, 2015 17:39
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
Replace uuid dependency with internal library
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
Replace uuid dependency with internal library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants