Skip to content

opt out of BindingRedirects #415

Closed

Description

@ctaggart

I would really like an option to opt out of the binding redirects being modified.
#383

Activity

  1. forki commented on Dec 3, 2014

    @forki
    Member

    I agree. How do you want this to look like?
    On Dec 3, 2014 9:25 PM, "Cameron Taggart" [email protected] wrote:

    I would really like an option to opt out of the binding redirects being
    modified.
    #383 #383

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

  2. agross commented on Dec 3, 2014

    @agross
    Contributor

    Probably like our content none option: binding_redirects off.

  3. ctaggart commented on Dec 3, 2014

    @ctaggart
    ContributorAuthor

    I would rather the feature be off by default and be an opt-in with something like paket update --redirects. With future .NET Core 5, binding redirects will not be needed.

  4. forki commented on Dec 4, 2014

    @forki
    Member

    @isaacabraham what do you think about this?

  5. isaacabraham commented on Dec 4, 2014

    @isaacabraham
    Contributor

    I have no clue regarding .NET core :-) But yes some way to turn off binding redirects - with the default being "off", whilst I actually think that's not necessarily a bad idea given how nascent the work on the redirects was, this does mean: -

    • We're differing from what NuGet does in terms of behaviour (not necessarily a problem).
    • This can (and probably will) lead to runtime errors, some of which might not happen until that specific DLL is referenced by the calling application. This can be painful.
  6. forki commented on Dec 4, 2014

    @forki
    Member

    so we add an --redirects option to install and update commands?

  7. isaacabraham commented on Dec 4, 2014

    @isaacabraham
    Contributor

    Or --noredirects :-)

  8. ctaggart commented on Dec 4, 2014

    @ctaggart
    ContributorAuthor

    Yes, my preference is for --redirects added to the install and update commands.

  9. forki commented on Dec 7, 2014

    @forki
    Member

    OK I think we will use the --redirects option for now. This will give us the chance to make things more stable and maybe later we change that again. OK?

  10. isaacabraham commented on Dec 7, 2014

    @isaacabraham
    Contributor

    Sounds good to me.

    From: Steffen Forkmann [mailto:[email protected]]
    Sent: 07 December 2014 17:29
    To: fsprojects/Paket
    Cc: Isaac Abraham
    Subject: Re: [Paket] opt out of BindingRedirects (#415)

    OK I think we will use the --redirects option for now. This will give us the chance to make things more stable and maybe later we change that again. OK?

    —
    Reply to this email directly or view it on GitHub #415 (comment) . https://github.com/notifications/beacon/ABswNVFGZtQWcCmLF24X2NxmLSAiQENBks5nVIXAgaJpZM4DD63M.gif

  11. mexx commented on Dec 7, 2014

    @mexx
    Contributor

    I know it's pretty late, but is it really clever to provide this as command line option?
    For people wanting the binding redirects it would be tedious and error-prone to use.

  12. forki commented on Dec 7, 2014

    @forki
    Member

    we could also add the option in the dependencies file (as a second option)

  13. isaacabraham commented on Dec 7, 2014

    @isaacabraham
    Contributor

    Hmmm dependencies file isn't about options / configuration really..

  14. agross commented on Dec 7, 2014

    @agross
    Contributor

    How would you make this a remembered option without a file?

    Bundler uses a temporary file at .bundle/config to, for example, store custom gem download directories.

    However we decide, content none should be stored in the same place.

    Alex

    Alexander Groß
    Tiny phone, tiny mail

    On Sun, Dec 7, 2014 at 10:48 PM, Isaac Abraham [email protected]
    wrote:

    Hmmm dependencies file isn't about options / configuration really..

    Reply to this email directly or view it on GitHub:
    #415 (comment)

  15. forki commented on Dec 8, 2014

    @forki
    Member

    I think storing it in the dependencies file would be ok. (We can still create a config file later)

  16. mexx commented on Dec 8, 2014

    @mexx
    Contributor

    Do we want to control the behavior on package and project basis or as an option for all projects and references?
    For the first option, we should put the flag into the references file on the package level.
    In other case into dependencies file. As @forki already said, config file can be extracted later.

  17. TWith2Sugars commented on Dec 8, 2014

    @TWith2Sugars
    Contributor

    @mexx How about both? Pull from environment (or however global settings would be implemented) for all projects and then override with project specific settings.

  18. forki commented on Dec 9, 2014

    @forki
    Member

    As a first step I put the the option as --redirects as command line param and as redirects on in paket.dependencies.

    Please review #436

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions