Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows Automated Installation Error #121

Open
bmmpp opened this issue Nov 29, 2023 · 1 comment
Open

windows Automated Installation Error #121

bmmpp opened this issue Nov 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bmmpp
Copy link

bmmpp commented Nov 29, 2023

Describe the bug/缺陷描述
refer to windows Automated Installation session:
running $iwr https://raw.githubusercontent.com/voidint/g/master/install.ps1 -useb | iex some error occured, log below.

param : 无法将“param”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次。 所在位置 行:8 字符: 1 + param([string] $base_dir = "$default_base_dir") + ~~~~~ + CategoryInfo : ObjectNotFound: (param:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException [1/3] Downloading https://github.com/voidint/g/releases/download/v1.5.2/g1.5.2.windows-amd64.zip 目录: C:\Users\Junon.g Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2023/11/29 11:14 downloads d----- 2023/11/29 11:14 bin Invoke-WebRequest : 无法连接到远程服务器 所在位置 行:20 字符: 5 + Invoke-WebRequest -Uri "$url" -OutFile "$dest_file"

  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
      ption
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

[2/3] Install g to the C:\Users\Junon.g\bin
Expand-Archive : 路径“\downloads\g1.5.2.windows-amd64.zip”不存在,或者不是有效的文件系统路径。
所在位置 行:24 字符: 5

  • Expand-Archive "$dest_file" "$base_dir\bin\"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (\downloads\g1.5.2.windows-amd64.zip:String) [Expand-Archive],InvalidOp
      erationException
    • FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive

[3/3] Set environment variables
%G_HOME%\bin appended
%GOROOT%\bin already exists
%GOPATH%\bin already exists
Done!

To Reproduce/缺陷复现步骤
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior/期望行为
A clear and concise description of what you expected to happen.

Screenshots/实际运行结果截图
If applicable, add screenshots to help explain your problem.

Environments (please complete the following information)/运行环境:

  • OS[e.g. uname -a]
    windows 11

  • g -v

  • go env

  • echo $G_EXPERIMENTAL

  • echo $G_HOME

  • echo $G_MIRROR

Additional context/额外信息
Add any other context about the problem here.

@bmmpp bmmpp added the bug Something isn't working label Nov 29, 2023
@akayj
Copy link
Contributor

akayj commented Nov 30, 2023

New PR for this issue #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants