Skip to content

Commit

Permalink
Don't try to download tree-sitter-dyn binary on CI, before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Jun 30, 2020
1 parent cb16535 commit 71cbf15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .azure-pipelines/steps/-retrieve-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ steps:
inputs:
artifact: tree-sitter-dyn.${{ ext }}
path: lisp

- bash: echo LOCAL > lisp/DYN-VERSION
4 changes: 3 additions & 1 deletion lisp/tree-sitter-dyn-get.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ If it's not found, try to download it."
(insert-file-contents
tree-sitter-dyn-get--version-file)
(buffer-string))))))
;; TODO: Write the correct version as part of the build process.
;; This is also run on CI, after we've built the binaries, but before
;; publishing them. Downloading at that time doesn't make sense, so we
;; disable it with a special version string.
(unless (string= current-version "LOCAL")
(when (or (not current-version)
(version< current-version version))
Expand Down

0 comments on commit 71cbf15

Please sign in to comment.