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.

Q: Migrate / upgrade project from manifest.json / lock.json to Gopkg.toml / Gopkg.lock? #1242

Closed
@marccarre

Description

@marccarre

Disclaimer: apologies in advance if I missed some doc/issue/PR answering this question already. The few searches I ran unfortunately did not yield anything.

Question:
If I have a project using the "old" format (pre #342) to define dependencies and constraints on them, i.e.:

  • manifest.json
  • lock.json

is there a way to have dep migrate or upgrade the project from these to the "new" (post #342) format, i.e.:

  • Gopkg.toml
  • Gopkg.lock

without having to do the following?

  • dep init && dep ensure && dep prune
  • manual translation of all constraints from JSON to TOML (:man_facepalming:)
  • rm manifest.json; rm lock.json

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