You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I have to ask: why? The immutability is really such a nice trait of the class.
If it is because you want to mock the generators, than my case for a UuidGeneratorInterface and DefaultUuidGenerator are confirmed 😄 I've started working on those together with the generateSequentialRandomUuid generator.
The reason will be displayed to describe this comment to others. Learn more.
The problem I'm having is with Travis CI and another project that uses this Uuid class. All my builds on Travis CI are failing because this Uuid class requires a 64-bit system, and Travis CI is only 32-bit, so I need to mock the Uuid class so that my tests pass.
I'm happy to make the class immutable again if I can work around the builds failing on Travis CI. Or maybe I just need to take my project off of Travis. :-)
The reason will be displayed to describe this comment to others. Learn more.
You could remove the check for the integer size from the constructor to a pre-installation hook in composer. If at any point authors must be warned, it should be at installation time... But I understand it that it wouldn't really be a solution to the underlying problem.
The reason will be displayed to describe this comment to others. Learn more.
It looks like Travis CI will be migrating to 64-bit systems in late September to early October, so this may become a non-issue. For now, it's just an annoyance, and while the tests pass fine on a 64-bit system, seeing failed tests on Travis makes me sad. :-)
On Jan 16, 2013, at 3:53, Marijn Huizendveld ***@***.*** wrote:
Travis is currently stil running on 32bit VMs but if you send an email to ***@***.*** you can ask to be put on the beta program list
�\
Reply to this email directly or view it on GitHub.
The reason will be displayed to describe this comment to others. Learn more.
I've just pushed the feature-32bit-support. Feel free to review it and let me know if anything's not working or stands out as being awkward or weird. Thanks!
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I have to ask: why? The immutability is really such a nice trait of the class.
If it is because you want to mock the generators, than my case for a
UuidGeneratorInterface
andDefaultUuidGenerator
are confirmed 😄 I've started working on those together with thegenerateSequentialRandomUuid
generator.5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem I'm having is with Travis CI and another project that uses this Uuid class. All my builds on Travis CI are failing because this Uuid class requires a 64-bit system, and Travis CI is only 32-bit, so I need to mock the Uuid class so that my tests pass.
I'm happy to make the class immutable again if I can work around the builds failing on Travis CI. Or maybe I just need to take my project off of Travis. :-)
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point me to the other project?
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I can't. It's a private repository for work.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, you have private beta access, sweet!
Have you considered adding support for 32-bit systems by converting those 64 bit values to strings?
There are a few articles on the matter.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've thought about it, but I haven't taken the time yet to see what I would need to do in order to make that happen.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could remove the check for the integer size from the constructor to a pre-installation hook in composer. If at any point authors must be warned, it should be at installation time... But I understand it that it wouldn't really be a solution to the underlying problem.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like Travis CI will be migrating to 64-bit systems in late September to early October, so this may become a non-issue. For now, it's just an annoyance, and while the tests pass fine on a 64-bit system, seeing failed tests on Travis makes me sad. :-)
http://about.travis-ci.org/blog/august-2012-upcoming-ci-environment-updates/
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis is currently stil running on 32bit VMs but if you send an email to support@travis-ci.org you can ask to be put on the beta program list 😄
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5215d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just pushed the feature-32bit-support. Feel free to review it and let me know if anything's not working or stands out as being awkward or weird. Thanks!