Skip to content

Conversation

@Mikachu2333
Copy link
Collaborator

@Mikachu2333 Mikachu2333 commented Aug 17, 2025

问题描述

  1. winget在remove时应当使用 RunOpt_Dont_Abort_On_Failure 避免crash
  2. close winget 换源命令错误 #255

方案与实现

换用 RunOpt_Dont_Abort_On_Failure

警告

没修好,目前只是改进了一处可能导致程序运行错误的问题,具体为啥没换源成功还在研究


二编

修好了,用了奇怪的实现方式,但是确实是能用了……

@github-actions
Copy link

Hi @Mikachu2333,

❤️ 感谢你的贡献!你的 PR 当前基于 main 分支,请修改使用 dev 分支

@Mikachu2333 Mikachu2333 changed the base branch from main to dev August 17, 2025 06:21
@Mikachu2333
Copy link
Collaborator Author

Mikachu2333 commented Aug 17, 2025

现在修好了,但是运行效果不尽人意,要是能压制error或者更改在 RunOpt_Dont_Abort_On_Failure flag下的显示就好了(

图片

@ccmywish ccmywish merged commit 978d4c6 into RubyMetric:dev Aug 19, 2025
@Mikachu2333 Mikachu2333 deleted the fix/supress_winget_error branch August 19, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants