Skip to content

Using pack - include project reference as dependency even if the id doesn't match? #670

Closed

Description

@ascjones

For a project template file, the rule for determining dependencies is (as per the docs):

the output assemblies of any project references which do not have a matching template file

However, in most of our projects the package id doesn't match the project name since we use a company prefix on the package names. This means that inter-project dependencies that also publish their own packages will be included in the lib folder but not as dependencies.

So, how can I make it so that our inter project dependencies are added as dependencues even if the id doesn't match?

/cc @mavnn

Activity

  1. mavnn commented on Mar 2, 2015

    @mavnn
    Contributor

    It's not done on id at all: it's based on whether the linked proj file has
    an associated paket.template.

    Is it not working?
    On 2 Mar 2015 20:44, "Andrew Jones" [email protected] wrote:

    For a project template file, the rule for determining dependencies is (as
    per the docs http://fsprojects.github.io/Paket/template-files.html):

    the output assemblies of any project references which do not have a
    matching template file

    However, in most of our projects the package id doesn't match the project
    name since we use a company prefix on the package names. This means that
    inter-project dependencies that also publish their own packages will be
    included in the lib folder but not as dependencies.

    So, how can I make it so that our inter project dependencies are added as
    dependencues even if the id doesn't match?

    /cc @mavnn https://github.com/mavnn

    —
    Reply to this email directly or view it on GitHub
    #670.

  2. ascjones commented on Mar 2, 2015

    @ascjones
    ContributorAuthor

    Oh right, let me try again

  3. ascjones commented on Mar 2, 2015

    @ascjones
    ContributorAuthor

    It is the behaviour I'm getting (v0.31.6.0):

    paket.template id in referenced project == project name: project reference included as dependency
    paket.tempate id in referenced project != project name: project reference included in lib folder

    Quick look at the code - is this it:

    match Map.tryFind p.Name map with

    Would run the debugger but gotta run now. Will check back tomorrow.

  4. mavnn commented on Mar 2, 2015

    @mavnn
    Contributor

    Ah, no: it's here

    . id should be the project name (which is how we look it up later) not the nupkg id (which is what it's being set to currently).

  5. forki commented on Mar 3, 2015

    @forki
    Member

    So it's a bug?

  6. mavnn commented on Mar 3, 2015

    @mavnn
    Contributor

    Yes
    On 3 Mar 2015 07:09, "Steffen Forkmann" [email protected] wrote:

    So it's a bug?

    —
    Reply to this email directly or view it on GitHub
    #670 (comment).

  7. ascjones commented on Mar 3, 2015

    @ascjones
    ContributorAuthor

    Okay I need this so I'll fix it now, unless @mavnn is already on it

  8. mavnn commented on Mar 3, 2015

    @mavnn
    Contributor

    Go for it - I'm on other stuff today

    On 3 March 2015 at 10:41, Andrew Jones [email protected] wrote:

    Okay I need this so I'll fix it now, unless @mavnn
    https://github.com/mavnn is already on it

    —
    Reply to this email directly or view it on GitHub
    #670 (comment).

  9. added a commit that references this issue on Mar 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions