fix relative-path discovery for case-normalized paths
This commit is contained in:
parent
912f1fe603
commit
6099a70c52
|
@ -10,3 +10,5 @@
|
||||||
(path->relative-string/library (path-only (collection-file-path "base.rkt" "racket"))))
|
(path->relative-string/library (path-only (collection-file-path "base.rkt" "racket"))))
|
||||||
(check-equal? "<collects>/racket/base.rkt"
|
(check-equal? "<collects>/racket/base.rkt"
|
||||||
(path->relative-string/library (collection-file-path "base.rkt" "racket")))
|
(path->relative-string/library (collection-file-path "base.rkt" "racket")))
|
||||||
|
(check-equal? "<collects>/racket/base.rkt"
|
||||||
|
(path->relative-string/library (normal-case-path (collection-file-path "base.rkt" "racket"))))
|
||||||
|
|
|
@ -44,7 +44,8 @@
|
||||||
;; `path1', but that messes up the xform compilation somehow, by
|
;; `path1', but that messes up the xform compilation somehow, by
|
||||||
;; having #<path...> vaules written into dep files.
|
;; having #<path...> vaules written into dep files.
|
||||||
[(null? path) path0]
|
[(null? path) path0]
|
||||||
[(equal? (car path) (car root)) (loop (cdr path) (cdr root))]
|
[(equal? (normal-case-path (car path)) (normal-case-path (car root)))
|
||||||
|
(loop (cdr path) (cdr root))]
|
||||||
[else path0])))
|
[else path0])))
|
||||||
|
|
||||||
(define root-or-orig
|
(define root-or-orig
|
||||||
|
|
Loading…
Reference in New Issue
Block a user