Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Per-project prune options are ignored #1561

@speijnik

Description

What version of dep are you using (dep version)?

v0.4.0

What dep command did you run?

dep ensure

Gopkg.toml contains per-project prune options which are silently ignored.
Global options have non-go pruning enabled, per-project options has non-go pruning disabled.

What did you expect to see?

Per-project prune options applied, non-go files not pruned for specific project.

What did you see instead?

Global prune options are applied to every project.

Analysis

A quick analysis of this issue shows that fromRawPruneOptions incorrectly applies the global options (from raw, instead of from p) when converting the raw prune options to gps.RootPruneOptions.

I am in the process of preparing a PR with a fix for this problem right now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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