Skip to content

How to specify build-flags #25

Open
@JensAc

Description

@JensAc

Hi,

first of all, thank you for providing go-dlv. I was able to get up and running quire quickly with it.
However, I have an issue debugging an application with a more sophisticated command line call.
For instance, I have a call like this:

dlv debug SOME_FOLDER --build-flags="-mod=vendor -ldflags='-X k8s.io/component-base/version.gitMajor=1'" -- FURTHER_APP_OPTIONS

This works just fine, when executed from a shell but when I paste this to the minibuffer opened by thedlv emacs function, I get

Error: unknown shorthand flag: 'm' in -mod=vendor -ldflags='-X k8s.io/component-base/version.gitMajor=1

Do you have any idea, what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions