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

<dir> parameter to dep init is not handled correctly #537

@sdboyer

Description

@sdboyer

The spec and CLI helptext indicate that dep init should be able to take a directory (relative or absolute) as an argument. If one is not provided, then we instead operate on the cwd.

However, it seems we've been so focused on the cwd case that we've largely neglected explicitly specifying a directory. Specifying an absolute dir seems to work correctly, but relative paths do not; it would appear we're missing a filepath.Abs() somewhere. We need to support relative paths, and add tests for both the absolute and relative path cases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions