Giter Site home page Giter Site logo

Comments (4)

alandipert avatar alandipert commented on May 19, 2024

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.

martinklepsch avatar martinklepsch commented on May 19, 2024

@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.

alandipert avatar alandipert commented on May 19, 2024

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.

martinklepsch avatar martinklepsch commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.