vbatts / is-archived

check if your project depends on projects that are archived

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-archived

check if the repos you're depending on are archived upstream.

Currently checks a golang go.mod file and/or a rust Cargo.toml

Usage

vbatts@weasel:~/src/github.com/vbatts/is-archived$ is-archived
INFO[0000] found 'go.mod'. Running `go mod edit -json'
INFO[0000] checking 6 github projects ...
vbatts@possibly:~/src/cc/image-rs$ is-archived
INFO[0000] found 'Cargo.toml'                           
INFO[0000] "" does not match "attestation_agent"        
INFO[0001] "" does not match "ocicrypt-rs"              
INFO[0001] "sigstore" does not list a repository        
INFO[0001] checking 28 github projects ...              
vbatts@possibly:~/src/cc/image-rs$ 

Install

go install github.com/vbatts/is-archived@latest

Github Rate Limit

With even a project like kubernetes, you'll hit the Github rate limit on the first run.

Go create a personal access token (PAT) on your Github Setting, and export it as a local environment variable.

export GITHUB_TOKEN=<your_github_pat>

Roadmap Ideas

About

check if your project depends on projects that are archived

License:MIT License


Languages

Language:Go 100.0%