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

ci: fix downloading deps for windows #253

Merged
merged 2 commits into from
Feb 23, 2024
Merged

ci: fix downloading deps for windows #253

merged 2 commits into from
Feb 23, 2024

Conversation

lread
Copy link
Collaborator

@lread lread commented Feb 23, 2024

The download-deps bb task creates a basis for each deps.edn alias in-process to efficiently download all deps (work is done in build.clj).

Because the :build alias also included deps-deploy its many deps were brought in. This seems to somehow mess up bringing down conflicting(?) deps for other aliases, at least for Windows.

I've separated out deps-deploy to :deploy from :build alias to try to avoid the issue.

Also: switched to clojure.tools.build.api/create-basis, was using clojure.tools.deps/create-basis; no need to use deps ns when build api exposes this fn.

Also: was depending on stale org.clojure/tools.build maven dep, switched to current io.github.clojure/tools.build dep and updated to current version.

Closes #252

The `download-deps` bb task creates a basis for each deps.edn alias in-process to
efficiently download all deps (work is done in build.clj).

Because the `:build` alias also included `deps-deploy` its many deps
were brought in. This seems to somehow mess up bringing down
conflicting(?) deps for other aliases, at least for Windows.

I've separated out `deps-deploy` to `:deploy` from `:build` alias to try
to avoid the issue.

Also: switched to `clojure.tools.build.api/create-basis`, was using
`clojure.tools.deps/create-basis`; no need to use deps ns when build api
exposes this fn.

Also: was depending on stale `org.clojure/tools.build` maven dep, switched to
current `io.github.clojure/tools.build` dep and updated to current version.

Closes #252
This should fix GitHub API rate limit errors.
@lread lread merged commit 98781b1 into main Feb 23, 2024
81 checks passed
@lread lread deleted the lread-win-deps branch April 25, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci chore: clojure deps on windows sporadically fail to download
1 participant