Skip to content

build-artifact? throws NPEs when not using leiningen or boot #124

@kotarak

Description

@kotarak

Not using one of the named systems causes NPEs being thrown in the repl, for example when typing a namespaced keyword. Obviously build-artifact? fails to check for nil in line 60 of core.clj.

project-root fails to identify the project root correctly because it does only look for project.clj or build.boot. From the top of my head I could imagine other sensible values like .project, build.gradle, pom.xml, .git, .hg or _darcs.

On the one hand this list is not exhaustive. On the other hand none of them might indicate the true root of the system. So some possibility to hook into that logic would be nice.

(At the moment I monkey patch project-root to (contantly (System/getProperty "user.dir")), but that feels rather dirty.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions