Comments (4)
This turned out not to be a bug - a set-env!
call in the build.boot
was overwriting :dependencies
added at the command line. The fix was to add more dependencies by passing a function to set-env!
, like this:
(set-env! :dependencies #(into % '[[foo "1.0.0"] [bar/baz "2.0.0-SNAPSHOT"]]))
from boot.
@micha @alandipert As I mentioned this seems like an inconsistency. Maybe it's worth printing a note like
You are using -d and have a build.boot file. This can lead to inconsistencies between (get-env :dependencies) and what's actually on the classpath.
I understand that -d
is mostly meant for when you don't have a build.boot file but that won't prevent people from using it being unaware of the exact effects this has.
from boot.
Hm, I like the idea of printing a note, but I think maybe it would be best to do so only in the exact circumstance you experienced. I know Micha said -d and build.boot shouldn't really mix, but I think it's really -d and build.boot + set-env! :dependencies that don't mix. I can imagine having a build.boot full of task-options and wanting to use -d with it, for instance.
In an effort to be as precise as possible, how about: if you use -d
, and later you call set-env! :dependencies <non-function>
in your build.boot or in the REPL, (thereby dissociating the dependencies you brought in from the env atom) then we print a message?
I guess this in turn begs the question - should we warn people when any set-env! :dependencies call beyond their first isn't a function? Should this even work?
from boot.
Right. Showing this only when relevant is the best solution if it's possible without cluttering things.
I guess this in turn begs the question - should we warn people when any set-env! :dependencies call beyond their first isn't a function?
Actually a good idea I think.
Should this even work?
I don't see a use case for it but that doesn't mean there is none. I think I saw @micha mentioning that this can be handy, just don't remember the scenario.
from boot.
Related Issues (20)
- Cut a new release HOT 1
- Respect nREPL's config file
- Cannot compile Boot on Java 10/11/12 HOT 1
- Lein to Boot HOT 1
- Pushing an artifact on 2.8.3 fails with java.lang.NoSuchMethodError: org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.getBufferCapacityForTransfer(J)I HOT 10
- List only project tasks instead of whole tasks and help message HOT 1
- Fails completely on MacOS 10.14.1 HOT 2
- Boot-generated uberjar zip file has corrupted content on Java 13 HOT 1
- Ubuntu 19.10 - 'an illegal reflective access operation has occurred' HOT 2
- Could not locate class HOT 2
- IPv6 support missing in boot
- NullPointerException when trying to run shebang boot script on macOS HOT 5
- Fails to start on NetBSD 9.0RC1
- Unable to install v2.8.2 on MacOS HOT 3
- Prefix string too short HOT 2
- Possibly out of date documentation about nrefactor repl
- java.lang.NullPointerException on boot repl -c HOT 1
- Boot doesn't work on macOS Big Sur HOT 20
- Boot executable refers to invalid web site boot-clj.com HOT 1
- Creating a binary executable from a Clojure script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boot.