GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Wattpad/affected: Determines affected go packages by git commit range

This repository was archived by the owner on Aug 26, 2026. It is now read-only.
BranchesTags
Open more actions menu
 
 

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

Affected

Affected queries a git repository for a commit range and determines which Go packages are affected, either because their source was modified or because they depend (directly or transitively) on an affected package. This is useful when working in a monorepo to speed up CI tests/builds and for reducing the number of components redeployed by a CD pipeline. A package is considered modified if any file within that package directory was modified. The downside of this is that changing a text file in a library imported by many packages can cause excessive false positives,but was chosen as a strategy because that text file could be part of bindata or similar, thus there's no way to safely know which files are not really part of the program source.

Usage

Call affected with a git commit range in the form old..new, for example any of the following:

$ affected 2227ca9..HEAD
$ affected master..2227ca9

The output is a list of packages which are affected by the commits, ignoring stdlib, suitable for providing to go test.

Requirements

affected requires git to be available in the path, and will only work on git-managed repos.

To build for linux amd64 docker run --rm --platform=linux/amd64 -v "$(pwd)":/workspace -w /workspace golang:1.24 bash -c "go build -o affected-v0.1.3-linux-amd64. Substitute as needed.

About

Determines affected go packages by git commit range

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

23 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.