aronzvi
2020-4-22 07:41:26

@aronzvi has joined the channel


ggtr1138
2020-4-22 08:00:13

@ggtr1138 has joined the channel


sebastien.faucou
2020-4-22 09:56:38

@sebastien.faucou has joined the channel


samth
2020-4-22 14:13:52

a shorter answer to your original question is “yes, that’s the standard way to write transpose on lists-of-lists”


samth
2020-4-22 14:13:56

:slightly_smiling_face:


samth
2020-4-22 14:15:00

Yes, require is unhygenic (the names that it binds aren’t listed) and so you have the same issues expanding to it as expanding to other unhygenic macros. And your solution is the correct one.


pavpanchekha
2020-4-22 22:37:16

I’ve got a raco question and I can’t quite parse out the answer from the docs


pavpanchekha
2020-4-22 22:37:45

I maintain a package, and I have a script that downloads and runs it nightly to check tests etc


pavpanchekha
2020-4-22 22:38:05

Since the package has dependencies I’d like my script to automatically install dependencies of the package


pavpanchekha
2020-4-22 22:38:20

But raco pkg install --auto --link doesn’t work, since the package is already installed!


pavpanchekha
2020-4-22 22:38:49

And I’m not convinced raco pkg upgrade --auto --link works either (reading the docs)


pavpanchekha
2020-4-22 22:39:23

In fact what I really want is raco pkg install --deps-only or similar, since I have no interest in the package itself being registered on the system


pavpanchekha
2020-4-22 22:39:38

(It’s running nightlies, they often break, etc! But no one uses that machine for much else so it’s not a big problem)


mflatt
2020-4-22 22:51:29

I think raco pkg update --auto <pkg>


mflatt
2020-4-22 22:51:35

will do what you want.


mflatt
2020-4-22 22:52:46

That works, for example, after building the runtime system on Windows from a source bundle that has racket-lib installed, but not with the dependencies that it needs on Windows. The update command with --auto pulls in the dependencies.


pavpanchekha
2020-4-22 22:59:23

Is there an update-or-install ?


mflatt
2020-4-22 23:13:40

raco pkg install --skip-installed


mflatt
2020-4-22 23:14:43

I guess that’s not quite update-or-install, but it’s install-or-not.


gknauth
2020-4-22 23:35:35

So raco pkg install --skip-installed followed by raco pkg update --auto <pkg> would always make sure you had the latest and greatest <pkg>, if you didn’t know ahead of time if it was installed or not? Or is there something like port list installed where you can see what’s already installed? Oh wait, I think that would be raco pkg show [<pkg>]?


mflatt
2020-4-23 00:23:35

Yes, I think that’s right.


samth
2020-4-23 02:43:59

I think both install-or-update and install --deps-only would be great to have and would not be that hard to implement