Skip to content

Can not install yamlfmt in environment.yml in Windows #324

@tristan-f-r

Description

@tristan-f-r

@ntalluri did this work for you after #305? I installed the latest conda env and now get:

[INFO] Installing environment for https://github.com/google/yamlfmt.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Restored changes from C:\Users\agitter\.cache\pre-commit\patch1752252703-32208.
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\agitter\\.conda\\envs\\spras\\bin\\go.EXE', 'install', './...')
return code: 2
expected return code: 0
stdout: (none)
stderr:
    go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set

It looks like the conda installation gave me go.exe and gofmt.exe on Windows but not the full go SDK. I reopening this because Go is broken on Windows for me.

This appears to be an unresolved issue conda-forge/go-feedstock#203

Originally posted by @agitter in #295

Extra note from @ntalluri: This was not caught in the windows "Test conda environment" workflow because it already comes with Go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamThis is not something we can resolve in SPRAS itself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions