Skip to content

Commit

Permalink
Merge pull request #271 from vito/entrypoints
Browse files Browse the repository at this point in the history
Support configuring `ENTRYPOINT` and `CMD`
  • Loading branch information
vito authored Apr 9, 2023
2 parents 5b1bba7 + 8f6118c commit 13d448c
Show file tree
Hide file tree
Showing 84 changed files with 1,777 additions and 2,316 deletions.
16 changes: 2 additions & 14 deletions bass/bass.bass
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(defn checkout [sha]
(git:github/vito/bass/sha/ sha))

(provide [subgit]
(provide [subgit git-submodules]
; produces a fresh checkout of the last commit that affected the given paths
(defn subgit [src & paths]
(git:checkout (remote src) (latest-commit src paths)))
Expand All @@ -27,19 +27,7 @@
(git-out src ($ git remote get-url origin)))

(defn latest-commit [src paths]
(git-out src ($ git log -n1 "--pretty=format:%H" -- & $paths))))

(provide [git-submodules]
; TODO: remove once this ships and bass-loop is upgraded
;
; reads all values from the source into a list
;
; => (take-all (list->source [1 2 3]))
(defn take-all [source]
(let [val (next source _)]
(if (ignore? val)
[]
(cons val (take-all source)))))
(git-out src ($ git log -n1 "--pretty=format:%H" -- & $paths)))

(defn git-submodules [src]
(map (fn [[_ path]] (string->dir path))
Expand Down
Loading

0 comments on commit 13d448c

Please sign in to comment.