Skip to content

Evaluate leiningen's project.clj files #5

@darwin

Description

@darwin

Cool project but unfortunately I cannot really use it with my lein project files.

You read project.clj files as data, but in general case they contain arbitrary code. For example I might want to "compute" dependency versions using some code:
https://github.com/binaryage/dirac/blob/master/project.clj#L1

Ideally you should run leiningen to evaluate dependencies and parse the results:
lein pprint :dependencies

or in more general case:
lein with-profiles <some-profiles> pprint :dependencies
and let me specify some-profiles as part of badge url.

But I understand that this is kinda edge case and running arbitrary foreign code in the context a web service might be too dangerous.

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