dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
2017-06-23T21:16:57.158580Z

@richiardiandrea cool, but doesn’t really work for me on my mac

richiardiandrea 2017-06-23T21:17:15.162670Z

oh cool that you tested 😄 I was going to ask some colleague here

richiardiandrea 2017-06-23T21:17:48.169979Z

mktemp seems different, will debug it

2017-06-23T21:19:11.189223Z

btw. naked path args to mkdir are dangerous, imagine spaces in the filename: https://github.com/elasticpath/rest-resource-viz/blob/dirac-script/scripts/dirac.sh#L55

richiardiandrea 2017-06-23T21:20:30.207322Z

yeah I know, it slipped, tnx

richiardiandrea 2017-06-23T21:20:39.209331Z

does mktemp -d dirac.XXXXXXX works for you?

2017-06-23T21:21:36.222361Z

yes

richiardiandrea 2017-06-23T21:21:39.223112Z

also, do you think it is something I can contribute somewhere? Maybe the wiki?

2017-06-23T21:21:44.224112Z

--directory flag was invalid

richiardiandrea 2017-06-23T21:21:47.224898Z

kk

richiardiandrea 2017-06-23T21:23:42.250989Z

ok works fine here too

richiardiandrea 2017-06-23T21:23:55.253930Z

refresh the page to see it anew 😄

2017-06-23T21:24:03.255957Z

you could mention it in the https://github.com/binaryage/dirac/tree/master/docs somewhere

2017-06-23T21:25:10.270823Z

but I’m afraid that the script will be quite fragile, so at some point it will break and I won’t know about it / or are you going to maintain it?

richiardiandrea 2017-06-23T21:26:14.285084Z

ah ah yeah I think I am going to maintain it in that repo, haven't thought about that part yet

2017-06-23T21:29:26.327819Z

btw. still does not work, btw $OSTYPE is not a thing on mac https://gist.github.com/darwin/ddabaa0e7cb93af73fc78dd9cb496c0c

richiardiandrea 2017-06-23T21:29:55.334388Z

maaan, that SO post was lying then

2017-06-23T21:30:20.340470Z

at least it is not defined on my machine

2017-06-23T21:31:21.354758Z

uname is the way to go

richiardiandrea 2017-06-23T21:32:36.371315Z

yep I am reading

richiardiandrea 2017-06-23T21:33:35.384384Z

do they have x86 versions for linux? I have seen on x86_64

2017-06-23T21:34:03.390312Z

don’t remember

👍 1
richiardiandrea 2017-06-23T21:48:05.564911Z

lol I was wondering, what if you release one they and there have been more than 100 builds ? you'll miss it...and now then I understand why you release so frequently 😄

2017-06-23T21:48:40.572194Z

that’s not the reason 🙂

2017-06-23T21:49:04.576806Z

that 100 number means “scan for last 100 versions to find last valid build”

richiardiandrea 2017-06-23T21:49:07.577384Z

ah ah I am joking

2017-06-23T21:49:21.580070Z

chrome devs would have to break 100+ versions so there would be no binaries for them

richiardiandrea 2017-06-23T21:49:33.582413Z

I had to increase to 150 for Mac now

2017-06-23T21:50:01.588140Z

hmm, this seems unlikely

2017-06-23T21:50:53.599103Z

btw. the reason I release quite often is that I want to be merging official changes in smaller chunks and I don’t want to fall too far behind canary builds with dirac

richiardiandrea 2017-06-23T21:56:35.665574Z

very weird the '<https://omahaproxy.appspot.com/deps.json?version=61.0.3126.2>'

richiardiandrea 2017-06-23T21:57:44.678781Z

returns 478483 but Mac position is 478480

2017-06-23T22:01:48.727996Z

I’m sorry, cannot help, I wrote those scripts many months ago

2017-06-23T22:02:59.741348Z

ah, now when I think about it

2017-06-23T22:03:14.744231Z

different platforms have different positions for official “build numbers”

2017-06-23T22:03:22.745896Z

or rather “might have”

richiardiandrea 2017-06-23T22:03:25.746397Z

no problem, you've helped a lot already...probably...yeah...it seems like 😄

2017-06-23T22:04:02.753418Z

imagine chrome build breaking on linux and passing on mac, the mac one will be tagged and released, but linux one will be delayed a few positions until it starts passing again

richiardiandrea 2017-06-23T22:04:44.761286Z

yeah now I need a way to detect that...but thanks for the heads-up

2017-06-23T22:05:41.771902Z

you don’t, you know which platform the user is on, so you scan for valid position on given platform

richiardiandrea 2017-06-23T22:05:57.774775Z

oh there is this: https://omahaproxy.appspot.com/all.json

richiardiandrea 2017-06-23T23:08:32.341729Z

I ended up fetching links for Dirac's release notes

2017-06-23T23:09:00.345125Z

I think this will be most robust solution

richiardiandrea 2017-06-23T23:09:47.350952Z

yeah and parsing a json is more difficult if you want to be cross platform so...will test it on Mac too

richiardiandrea 2017-06-23T23:10:20.355297Z

my colleague just went away for a Friday company beer lol 😄

2017-06-23T23:11:00.360266Z

I have to go as well, it is 1am here 🙂

richiardiandrea 2017-06-23T23:11:08.361224Z

thanks for your help as usual

2017-06-23T23:11:38.364889Z

np, thanks for caring about dirac’s usability 🙂