Skip to content

Go version 1.20.x or below failed to unpack #251

@anemele

Description

@anemele

Please complete the following tasks

rust version

use prebuilt binary release

goup-rs version

$ goup --version
goup 0.10.0
-------------------------------------
goup is an elegant Go version manager

Author:          thinkgos
Email:           [email protected]
Repository:      https://github.com/thinkgos/goup-rs
Branch:
GitCommit:       f6a84201
GitFullCommit:   f6a842012bfeec8d0b721c567dd6057aff4df385
BuildTime:       Wed, 26 Feb 2025 08:00:58 +0000
BuildEnv:        rustc 1.85.0 (4d91de4e4 2025-02-17), stable-x86_64-pc-windows-msvc
BuildOs:         windows
BuildArch:       x86_64

Steps to reproduce the bug with the action.

$ goup install =1.20.14
[2025-03-14T06:01:50Z INFO ] Installing go1.20.14 ...
[2025-03-14T06:01:50Z INFO ] Unpacking C:\Users\xxx\.goup\cache\go1.20.14.windows-amd64.zip to C:\Users\xxx\.goup\go1.20.14 ...
Error: 系统找不到指定的路径。 (os error 3)

Actual Behaviour

It creates a file rather than a dir C:\Users\xxx\.goup\go1.20.14\go, which is why failed to unpack I found.

Expected Behaviour

Unpacking the zip file successfully.

Additional Context

1.19.3 also failed. 1.21.3, 1.22.12, 1.23.7, 1.23.7 succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions