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

fix: overrides config with cli options on compiler #567

Closed
wants to merge 3 commits into from
Closed

fix: overrides config with cli options on compiler #567

wants to merge 3 commits into from

Conversation

rafaeldelboni
Copy link
Contributor

@rafaeldelboni rafaeldelboni commented Oct 18, 2024

I missed this one on the last PR (#566)
The compiler internal function not overriding squint.edn configurations with command line options --paths.

@@ -27,6 +27,11 @@
[squint.internal.protocols :as protocols])
#?(:cljs (:require-macros [squint.resource :refer [edn-resource]])))

(defn opts+cfg->paths [opts cfg]
(-> (into (:paths cfg []) (:paths opts []))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This merges the paths, rather than overriding paths. Why not just merge the opts with cfg, then take the paths and or that with ["." "src"]?

@borkdude
Copy link
Member

@rafaeldelboni Shouldn't this just fix it?

#568

@borkdude
Copy link
Member

released 0.8.122

@borkdude borkdude closed this Oct 19, 2024
@rafaeldelboni
Copy link
Contributor Author

Thanks! Sure makes sense I didn't understand the problem

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.

2 participants