Test vars and overrides

This commit is contained in:
Ray Miller 2025-01-06 22:08:33 +00:00
parent 12c45b628c
commit af16ee29b6
Signed by: ray
GPG key ID: 043F786C4CD681B8
3 changed files with 15 additions and 19 deletions

View file

@ -19,6 +19,7 @@
(define* (install-directory path #:key owner group mode)
(lambda (conn)
(format #t "install-directory ~a~%" path)
(connection-must conn "install" (chain-when
'("--directory")
(owner (append _ `("--owner" ,owner)))
@ -45,6 +46,7 @@
(when (not (= 1 (length (filter identity (list content local-src remote-src)))))
(error "exactly one of #:content, #:local-src, or #:remote-src is required"))
(lambda (conn)
(format #t "install-file ~a~%" path)
(let ((remote-src (cond
(remote-src remote-src)
(local-src (call-with-input-file local-src (upload-tmp-file conn)))

View file

@ -21,6 +21,7 @@
(define* (context #:key scratch-dir init-vars)
(make-context scratch-dir init-vars))
;; TODO: (resolve-content-refs ctx (lambda (x) x)) fails
(define-syntax resolve-context-refs
(syntax-rules ($)
((_ ctx ($ x))