Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 614523e

Browse files
committed
Ignore go.sum in file patterns and treat go.mod as a lockfile
1 parent 468feb2 commit 614523e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## [Unreleased]
22

3+
- Ignore go.sum (checksums only), treat go.mod as lockfile
4+
35
## [0.6.1] - 2026-01-05
46

57
- Fix `stats` command crash on most changed dependencies query

lib/git/pkgs/analyzer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Analyzer
1818
pom.xml ivy.xml build.gradle build.gradle.kts gradle-dependencies-q.txt
1919
maven-resolved-dependencies.txt sbt-update-full.txt maven-dependency-tree.txt maven-dependency-tree.dot
2020
Cargo.toml Cargo.lock
21-
go.mod go.sum glide.yaml glide.lock Godeps Godeps/Godeps.json
21+
go.mod glide.yaml glide.lock Godeps Godeps/Godeps.json
2222
vendor/manifest vendor/vendor.json Gopkg.toml Gopkg.lock go-resolved-dependencies.json
2323
composer.json composer.lock
2424
Podfile Podfile.lock *.podspec *.podspec.json

lib/git/pkgs/commands/diff_driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DiffDriver
2323
composer.lock
2424
gems.locked
2525
glide.lock
26-
go.sum
26+
go.mod
2727
mix.lock
2828
npm-shrinkwrap.json
2929
package-lock.json

lib/git/pkgs/config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
module Git
66
module Pkgs
77
module Config
8-
# File patterns ignored by default (SBOM formats not supported)
8+
# File patterns ignored by default (SBOM formats not supported, go.sum is checksums only)
99
DEFAULT_IGNORED_FILES = %w[
1010
cyclonedx.xml
1111
cyclonedx.json
1212
*.cdx.xml
1313
*.cdx.json
1414
*.spdx
1515
*.spdx.json
16+
go.sum
1617
].freeze
1718

1819
def self.ignored_dirs

0 commit comments

Comments
 (0)