-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.7 installation possibly broken on MacOS #5
Comments
I just tried it on my mac and I get the same error:
I can try to dig in a little deeper later. |
Oh, I see what's going on. (define (current-executable-path)
(parameterize ([current-directory (find-system-path 'orig-dir)])
(find-executable-path (find-system-path 'exec-file) #false)))
(define (current-collects-path)
(define p (find-system-path 'collects-dir))
(if (complete-path? p)
p
(path->complete-path p (or (path-only (current-executable-path))
(find-system-path 'orig-dir))))) for me this resolves to locus-local.rkt> (current-collects-path)
#<path:/usr/local/bin/../collects> because locus-local.rkt> (current-executable-path)
#<path:/usr/local/bin/racket> but that's wrong because
so the collects path it guesses is wrong. The docs mention this problem:
So it seems like you either need to follow the link before resolving the collection path of drop the (define worker-cmdline-list (list (current-executable-path)
;; "-X"
;; (path->string (current-collects-path))
"-e"
"(eval (read))")) If I do that, this test passes:
|
This patch fixes the problem: From 1e7467dfb12acc76729560fe74f1eda2fbc2bc68 Mon Sep 17 00:00:00 2001
From: Bogdan Popa <bogdan@defn.io>
Date: Fri, 17 Apr 2020 11:07:24 +0300
Subject: [PATCH] locus-local: follow links when building collects paths
---
loci/private/locus-local.rkt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/loci/private/locus-local.rkt b/loci/private/locus-local.rkt
index 75bdc19..67e9784 100644
--- a/loci/private/locus-local.rkt
+++ b/loci/private/locus-local.rkt
@@ -104,8 +104,8 @@
(define p (find-system-path 'collects-dir))
(if (complete-path? p)
p
- (path->complete-path p (or (path-only (current-executable-path))
- (find-system-path 'orig-dir)))))
+ (path->complete-path p (or (path-only (resolve-path (current-executable-path)))
+ (find-system-path 'orig-dir)))))
(define worker-cmdline-list (list (current-executable-path)
"-X"
(path->string (current-collects-path))
--
2.25.1 |
Suggested by BogdanP in Bogdanp/setup-racket#5 (comment)
It worked! Great. Thanks. |
(Possibly related to #4)
I am seeing an error when trying to test one of my libraries using github actions. Do you own a mac for testing by any chance.
https://github.com/pmatos/racket-loci/pull/4/checks?check_run_id=592076853#step:5:10
Thanks.
The text was updated successfully, but these errors were encountered: