Skip to content
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

Support configuring ENTRYPOINT and CMD #271

Merged
merged 16 commits into from
Apr 9, 2023
Merged
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