<dch>
I'd like to avoid fetching the entire git repo for every single dependency (its a huge waste of network b/w)
<dch>
is it possible to tell shards / crystal, hey you can just use the fetched tarball, instead of requiring it to be a full git checkout?
<dch>
for a bit more explanation, the ports build system fetches tarballs for each dependency, which we then cache for future builds, and unpacks them in lavinmq/lib/... where you'd expect them to be
<dch>
but if we're using full git checkouts, this isn't possible
taupiqueur has quit [Ping timeout: 264 seconds]
Sankalp has joined #crystal-lang
taupiqueur has joined #crystal-lang
jmdaemon has quit [Ping timeout: 246 seconds]
<FromGitter>
<moe:busyloop.net> hmm, you can point shards.yml to a path: https://github.com/crystal-lang/shards/blob/master/docs/shard.yml.adoc ⏎ ⏎ but not sure if that's what you want (it would likely prevent people from building without first manually checking it out to the same path)
<dch>
moe: yep, this is sortof ok for the top-level dependency, but then we have shards that require shards that require shards and it clearly is not an optimal solution
<dch>
and then `shards lock` which cleans the mess up
<dch>
not ideal, but enough for today :D
<FromGitter>
<moe:busyloop.net> ah yup, sounds good (if this is for CI then that's prob exactly what i would do as well 😬)
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
drakonis has left #crystal-lang [WeeChat 3.6]
taupiqueur has quit [Ping timeout: 248 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
<FromGitter>
<may> Apologies if this has been addressed somewhere already (my google fu failed me today); is there a way to pass variables by reference in Crystal? ⏎ ⏎ For example: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=63b31c1b410c633d48079c30]
<FromGitter>
<riffraff169> i think youd have to do `user = test`
<FromGitter>
<riffraff169> you could have multiple assign that way too
taupiqueur has joined #crystal-lang
ur5us has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
renich has joined #crystal-lang
<FromGitter>
<Blacksmoke16> can use a class for it
<FromGitter>
<Blacksmoke16> otherwise just have the function return the value
taupiqueur has joined #crystal-lang
hightower3 has quit [Ping timeout: 265 seconds]
hightower2 has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
dch has left #crystal-lang [#crystal-lang]
jmdaemon has joined #crystal-lang
<FromGitter>
<may> Yeah, multi assign was where I was headed but I wanted to check first. Thanks folks! ⏎ ⏎ I appreciate knowing the class option as well, thanks!
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 272 seconds]
hightower2 has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
_ht has quit [Quit: _ht]
<FromGitter>
<abduct> hey all, i have a bit of a complex formatting question for an Array(Array(Int32)) variable. the variable consists of all valid [x, y, z] coords for an inverse kinematics solutions generated via (1..210).to_a.each_cartesian((1..90).to_a, (1..50).to_a) do |x, y, z|. since not all coords have a viable solution they are not added to the results. ex: [210, 15, 27], [210, 16, 1] has missing entries. i am wanting to
<FromGitter>
... format this array so that i have a grid of 210x90 (X x Y) placing the Z value in each cell, but at the same time if there are entries missing, place an X in the cell to symbolize an invalid coord. where do you think i should start?
taupiqueur has quit [Ping timeout: 260 seconds]
<FromGitter>
<oprypin:matrix.org> @abduct: couldn't the invalid coord be `nil`?
<FromGitter>
<oprypin:matrix.org> @abduct: can you make a full example of how you want it to look, even with the `X`s that don't actually work?
<FromGitter>
<abduct> that actually sparked a thought. im putting invalid coords as [-1, -1, -1] now. now its just a bunch of iterations through the array to create my grid. i guess i was just caught up on how to identify the invalid results. mental block gone :)