Skip to content

Not able to disable ASDF_GOLANG_MOD_VERSION_ENABLED #123

Open
@MPV

Description

@MPV

Describe the bug
I have disabled ASDF_GOLANG_MOD_VERSION_ENABLED, but still getting the notice when starting my shell.

To Reproduce
Steps to reproduce the behavior:

  1. Add export ASDF_GOLANG_MOD_VERSION_ENABLED=false in the shell's configs (.zshrc/equivalent).
  2. Start a new shell.

Expected behavior
I should be able to disable the go.mod version detection (and just use .tool-versions for defining Golang version), without having my shell warning me about a feature I have decided to opt-out of.

Screenshots

Upon starting my shell:

Notice: Behaving like ASDF_GOLANG_MOD_VERSION_ENABLED=true
        In the future this will have to be set to continue
        reading from the go.mod and go.work files
$ env|grep ASDF_GOLANG_MOD_VERSION_ENABLED
ASDF_GOLANG_MOD_VERSION_ENABLED=false

Additional context

I'm using this version of the plugin:

$ asdf plugin list --refs | grep golang
golang                       master 3c3674a

i.e:

...which includes the change from:

i.e. this doesn't feel solved yet, in my mind:

Also, I think this other issue wouldn't be a bad idea:

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