soegaard2
2021-8-2 09:24:09

@massung If you need the same kind of path setup for others things, it’s worth to know about /etc/paths.d/ . See https://golangbyexample.com/understand-etc-paths-pathsd-mac/


ben.knoble
2021-8-2 11:10:52

But doesn’t that affect all users (assuming there might be more than one human, though that is a rarity these days)?


massung
2021-8-2 13:11:46

It does, but, not a problem in my case (as you noted)


maueroats
2021-8-2 15:25:35

I know this thread is old, but why are people (beginners?) writing macros with #lang racket/base instead of #lang racket?


joel
2021-8-2 15:27:59

More master/main headaches… This is on a fresh install of 8.2 CS on Windows, doesn’t happen on my macOS install. Is this a problem with my package config on the package server, the package server itself, or with Racket, or with git on my Windows machine (using 2.32.0)? PS C:\Users\Joel&gt; raco pkg install beeswax Resolving "beeswax" via <https://download.racket-lang.org/releases/8.2/catalog/> Resolving "beeswax" via <https://pkgs.racket-lang.org> Downloading repository <https://github.com/otherjoel/beeswax.git#main> git: could not find requested reference reference: master repo: otherjoel/beeswax.git context...: C:\Program Files\Racket\collects\net\git-checkout.rkt:403:0: select-commits ...


soegaard2
2021-8-2 15:32:57

Looks like a bug in raco pkg but it seems odd, that only Windows is affected. It’s worth trying an raco setup but I don’t have an idea for where to look for the problem.


mflatt
2021-8-2 15:35:48

I see that raco pkg install "<https://github.com/otherjoel/beeswax.git#main>" works on my machine (Mac OS), but not raco pkg install beeswax. Confusingly, I bet it starts works in a little while..


mflatt
2021-8-2 15:37:26

The problem is that raco pkg install beeswax gets a commit ID from the pkg server, which it sends on to git-checkout . Using the full URL with raco pkg install passes the branch main to git-checkout.


joel
2021-8-2 15:38:57

I already have the “Branch or commit” field for the package set to main on the package server though?


mflatt
2021-8-2 15:39:08

So why does git-checkout get confused by a commit ID, which is more specific? I forget exactly why, but git-checkout over the revelant protocol can’t ask for a specific commit, or something like that. It can ask for branches or tags. Given a commit ID, it has to find it in a branch.


mflatt
2021-8-2 15:39:32

Currently, it’s just looking from master , and it doesn’t find the commit that way.


mflatt
2021-8-2 15:39:56

When the package server catches up to your branch’s new commit, then git-checkout will see the commit ID associated with main, and things will work again.


mflatt
2021-8-2 15:40:59

Long story short: Yes, a bug in raco pkg, which probably hadn’t been pinned down before because the bad state turns out to be ephemeral in practice.


joel
2021-8-2 15:41:17

Ah I see.


laurent.orseau
2021-8-2 15:42:18

#lang racket imports a lot of stuff compared to #lang racket/base


mflatt
2021-8-2 15:44:39

I guess it’s actually a bug in git-checkout, which is supposed to fall back to checking all branches and tags. But it doesn’t expect failure trying just “master”. (Also, it would be better to check just “main”, first.)


ben.knoble
2021-8-2 15:45:17

I installed beeswax a few weeks ago on my mac (8.0 CS) with no trouble, if that helps nail things down.


joel
2021-8-2 15:46:44

Yeah the bug is apparently surfacing because I just pushed an update to the repo this morning and the package server hasn’t caught up yet.


mflatt
2021-8-2 16:13:49

Repair pushed (for client versions after v8.2, of course)


joel
2021-8-2 16:19:46

Thanks! and the package server is working again by this point, as you predicted.


samdphillips
2021-8-2 22:43:39

Encountering the same problem with sawzall that @hazel just pushed some changes to. Thanks for fixing Matthew.