Skip to content

GlittersIsGold/altpkgdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

altpkgdiff

A cli tool that output a JSON structure:

  • Packages only in p10.
  • Packages only in sisyphus.
  • Packages with higher version in sisyphus.

Project structure

altpkgdiff/
├── api/
│   └── client.go       # REST API interaction
├── cmd/
│   └── main.go         # CLI logic here
├── pkg/
│   └── diff.go         # Package diff funcs
├── test/
│   └── diff_test.go    # test funcs for comparing
├── go.mod              # Module
├── README.md           # Doc
└── .gitignore          # List of ignoring files

Test

go test -v .\test\diff_test.go     

Build

set GOOS & GOARCH to your target platform

$env:GOOS="linux"
$env:GOARCH="amd64" 

run build script

go build -o altpckgdiff .\cmd\main.go

Use

make file executable

chmod +x altpckgdiff

execute programm

compare repositories in two branches

./altpckgdiff -dst p10 -src sisyphus

compare repositories in two branches for the specified architecture

./altpckgdiff -dst p10 -src sisyphus -arch aarch64

save results to txt

./altpckgdiff -dst p10 -src sisyphus > out.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages