librelist archives

« back to archive

Inconsistency in Leiningen docs?

Inconsistency in Leiningen docs?

From:
Andy Fingerhut
Date:
2014-12-16 @ 02:29
In the "Declaring Profiles" section:

https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#declaring-profiles

it says:

"Profiles specified in profiles.clj will override profiles in project.clj,
so this can be used for project-specific overrides that you don't want
committed in version control."

Later in the "Merging" section:
https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#merging

it says:

"Remember that if a profile with the same name is specified in multiple
locations, only the profile with the highest "priority" is picked – no
merging is done. The "priority" is – from highest to lowest – project.clj,
profiles.clj, user-wide profiles, and finally system-wide profiles."

Both sections appear consistent on the relative priority of system-wide,
user-wide, and project.clj files, but they differ in project-specific
profiles.clj and project.clj.

From my testing in Leiningen 2.5.0, it appears that profiles.clj has
priority over project.clj, so perhaps the "Merging" section is incorrect?

Thanks,
Andy

Re: [leiningen] Inconsistency in Leiningen docs?

From:
Phil Hagelberg
Date:
2014-12-16 @ 04:01
Andy Fingerhut <andy.fingerhut@gmail.com> writes:

> Both sections appear consistent on the relative priority of system-wide,
> user-wide, and project.clj files, but they differ in project-specific
> profiles.clj and project.clj.
>
> From my testing in Leiningen 2.5.0, it appears that profiles.clj has
> priority over project.clj, so perhaps the "Merging" section is incorrect?

Yeah, sounds like an oversight. Happy to take a quick PR fixing the docs on this.

Phil

Re: [leiningen] Inconsistency in Leiningen docs?

From:
Andy Fingerhut
Date:
2014-12-16 @ 04:35
Thanks for checking.  Done:
https://github.com/technomancy/leiningen/pull/1786

Andy

On Mon, Dec 15, 2014 at 8:01 PM, Phil Hagelberg <phil@hagelb.org> wrote:
>
> Andy Fingerhut <andy.fingerhut@gmail.com> writes:
>
> > Both sections appear consistent on the relative priority of system-wide,
> > user-wide, and project.clj files, but they differ in project-specific
> > profiles.clj and project.clj.
> >
> > From my testing in Leiningen 2.5.0, it appears that profiles.clj has
> > priority over project.clj, so perhaps the "Merging" section is incorrect?
>
> Yeah, sounds like an oversight. Happy to take a quick PR fixing the docs
> on this.
>
> Phil
>