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

git commit -a 报错 #3

Open
vurtnr opened this issue Apr 18, 2024 · 3 comments
Open

git commit -a 报错 #3

vurtnr opened this issue Apr 18, 2024 · 3 comments

Comments

@vurtnr
Copy link

vurtnr commented Apr 18, 2024

error
试过上个issue的解决方法 无效。

@groundedtako
Copy link

在windows上需要手动修改advisory-db 的路径,将~/.cargo 替换成 /Users/xxx/.cargo

@WITstudio86
Copy link

WITstudio86 commented Apr 19, 2024

mac 系统相同的问题 , 已解决

  1. rm -rf deny.toml 删除掉现有的 deny 配置
  2. cargo deny init 初始化适应现版本的配置文件
  3. ‼️在 deny.toml 中找到 git-fetch-with-cli = true 并取消注释
  4. 修改 [licenses] 字段
unlicensed = "allow"
allow = [
  "MIT",
  "Apache-2.0",
  "Unicode-DFS-2016",
  "MPL-2.0",
  "BSD-2-Clause",
  "BSD-3-Clause",
  "ISC",
  "CC0-1.0",
]
  1. 执行 cargo deny check
  2. 此时再执行 git commit -a 就没有问题了

@xjohnwu
Copy link

xjohnwu commented Apr 20, 2024

mac系统我的解决方法:

rm -rf ~/.cargo/advisory-db
cargo deny check advisories

然后就可以了

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

No branches or pull requests

4 participants