Skip to content

Commit

Permalink
Improve directory handling (#57)
Browse files Browse the repository at this point in the history
* Improve directory handling.

We need to ensure we are getting directory pathnames not file
pathnames.

* Remove unnecessary script

The run-local.sh script is superseded by run-in-docker.sh script.
  • Loading branch information
verdammelt authored Nov 7, 2023
1 parent 9416cab commit e40a9a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
17 changes: 0 additions & 17 deletions bin/run-local.sh

This file was deleted.

9 changes: 6 additions & 3 deletions src/representer/main.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
(in-package :representer/main)

(defun solution-file (slug directory)
(merge-pathnames (make-pathname :name slug :type "lisp") directory))
(merge-pathnames (make-pathname :name slug :type "lisp")
(uiop:ensure-directory-pathname directory)))
(defun representation-file (directory)
(merge-pathnames (make-pathname :name "representation" :type "txt") directory))
(merge-pathnames (make-pathname :name "representation" :type "txt")
(uiop:ensure-directory-pathname directory)))
(defun mapping-file (directory)
(merge-pathnames (make-pathname :name "mapping" :type "json") directory))
(merge-pathnames (make-pathname :name "mapping" :type "json")
(uiop:ensure-directory-pathname directory)))
(defun repr-package-name (slug) (format nil "~:@(~A~)-REPR" slug))

(defun kill-package (package-name) (ignore-errors (delete-package package-name)))
Expand Down

0 comments on commit e40a9a6

Please sign in to comment.