如何查看go依赖包的license (glice)

Reference: https://github.com/ribice/glice

Installation:

Download and install glice by executing:

go install github.com/ribice/glice/v2/cmd/glice@latest

To update:

go get -u github.com/ribice/glice/v2

Usage:

To run glice, navigate to a folder with go.mod and execute:

glice

Alternatively, you can provide path which you want to be scanned with -p flag:

glice -p "github.com/ribice/glice"

By default glice:

Prints to stdout

Gets dependencies from go.mod

Fetches licenses for dependencies hosted on GitHub

Is limited to 60 API calls on GitHub (up to 60 dependencies from github.com). API key can be provided by setting GITHUB_API_KEY environment variable.

All flags are optional. Glice supports the following flags:

- f [boolean, fileWrite] // Writes all licenses to /licenses dir
- i [boolean, indirect] // Parses indirect dependencies as well
- p [string - path] // Path to be scanned in form of github.com/author/repo
- t [boolean - thanks] // if GitHub API key is provided, setting this flag will star all GitHub repos from dependency. __In order to do this, API key must have access to public_repo__
- v (boolean - verbose) // If enabled, will log dependencies before fetching and printing them.
- fmt (string - format) // Format of the output. Defaults to table, other available options are `csv` and `json`.
- o (string - otuput) // Destination of the output, defaults to stdout. Other option is `file`.

Don’t forget -help flag for detailed usage information.

Error:

ansiwen gctx
2022/09/16 03:01:35 GET https://api.github.com/repos/ansiwen/gctx/license: 403 API rate limit exceeded 17. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentattails.) [rate reset in 5s]

Solution:

https://github.com/settings/tokens create a token.

Then

export GITHUB_API_KEY=[new token]

Sample:
在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: TigerVNC是一种开源的远程桌面软件,其许可证是GNU通用公共许可证(GNU General Public License,简称GPL)。GNU GPL是一种自由软件许可证,它允许用户自由地使用、修改和传播软件。根据GPL的要求,当一个软件或程序使用GPL许可证进行发布时,用户有权利查看软件的源代码,并在符合许可证条款的情况下使用、修改和分发软件。 因此,如果您希望查看TigerVNC的许可证,可以前往TigerVNC的官方网站或相关的代码托管平台(如GitHub),在那里您可以找到TigerVNC的源代码以及相关文档。通过查看源代码和文档,您可以了解TigerVNC的许可证信息和相应的使用条款。 请注意,查看TigerVNC的许可证是为了确保您了解软件的使用范围和权利义务,以便您在合法且适当的情况下使用TigerVNC。应遵守许可证的规定,以保护软件作者的权益和自由软件社区的共享精神。如果您打算将TigerVNC用于商业用途或进行修改和重新分发,请确保您充分理解GPL许可证的要求,并遵守相关规定。 ### 回答2: 要查看TigerVNC的许可证,您可以按照以下步骤进行操作: 1. 打开您选择的网络浏览器(例如Google Chrome,Mozilla Firefox等)。 2. 输入“TigerVNC许可证”或“TigerVNC license”作为搜索关键字。 3. 在搜索结果中,您可能会看到官方TigerVNC网站的链接。请点击该链接以访问TigerVNC官方网站。 4. 在官方网站上,您应该能够找到与许可证相关的信息。这些信息可能会在网站的“许可证”或“法律声明”部分提供。 5. 单击相关链接或导航到“许可证”部分。 6. 在许可证部分,您应该能够查看TigerVNC的许可证类型、条款和条件等详细信息。 7. 阅读许可证条款和条件,了解TigerVNC软件的使用限制、权利和义务等内容。 请注意,许可证条款和条件可能会因TigerVNC的不同版本而有所不同。确保您查看的是适用于您所使用版本的许可证。此外,如果您在寻找TigerVNC的开源许可证(如GPL),您可以在许可证部分找到相关信息。 如果以上步骤无法满足您的需求,您还可以尝试通过向TigerVNC开发者团队发送电子邮件或联系他们以获取有关许可证的更多详细信息。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值