You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, kpm needs to make network requests to obtain checksum of tripartite dependencies in the process of managing tripartite dependencies, which may cause the tool to fail to run in offline environment and lead to increased time consumption.
zong-zhe
changed the title
[WIP] Enhancement: Added a switch for kpm checksum to work offline
[WIP] Enhancement: Added a switch for kpm checksum to work without checksum
Feb 26, 2025
Now, all modules under github.com/yourteam and git.example.com/internal/auth will bypass the public checksum database.
@zong-zhe hello, i would like to know if KPM has a centrailzed checksum db. If not, what is the significance of skipping the checksum check?
In a purely internal network environment, is it vaild to skip such checks? If so, is it related to this #329 ?
hello, i would like to know if KPM has a centrailzed checksum db. If not, what is the significance of skipping the checksum check?
In a purely internal network environment, is it vaild to skip such checks? If so, is it related to this #329 ?
Enhancement
At present, kpm needs to make network requests to obtain checksum of tripartite dependencies in the process of managing tripartite dependencies, which may cause the tool to fail to run in offline environment and lead to increased time consumption.
More details: #605
So I looked into
go mod
similar solution to this problem.Skip Go Module Checksum Verification
Using
GONOSUMDB
What is
GONOSUMDB
?GONOSUMDB
is an environment variable that specifies module paths or patterns for which Go skips checksum validation againstsum.golang.org
.sum.golang.org
is restricted.Configuration
Path Rules
github.com/yourteam/private-lib
github.com/yourteam/*
(matches all subpaths).Example
For private dependencies:
github.com/yourteam/utils
git.example.com/internal/auth
Configure:
Now, all modules under
github.com/yourteam
andgit.example.com/internal/auth
will bypass the public checksum database.The text was updated successfully, but these errors were encountered: