Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ and this project adheres to

### Security

Addressed all known, fixable CVEs.
- Addressed all known, fixable CVEs.

### Fixed

- Fixed occasional panic due to a concurrent map read/write during runtime setup.

## 0.48.0

Expand Down
3 changes: 3 additions & 0 deletions pkg/runtime/depot.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func (d *depot) SetCacheSize(mb int) {
// Artifact metadata comes from the depot's cache, and may not exist for installed artifacts that
// predate the cache.
func (d *depot) Exists(id strfmt.UUID) (bool, *artifactInfo) {
d.mapMutex.Lock()
defer d.mapMutex.Unlock()

if _, ok := d.artifacts[id]; ok {
if artifact, exists := d.config.Cache[id]; exists {
return true, artifact
Expand Down
5 changes: 3 additions & 2 deletions test/integration/use_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ func (suite *UseIntegrationTestSuite) TestReset() {

cfg, err := config.New()
suite.NoError(err)
rcfile, err := subshell.New(cfg).RcFile()
if runtime.GOOS != "windows" && fileutils.FileExists(rcfile) {
if runtime.GOOS != "windows" {
rcfile, err := subshell.New(cfg).RcFile()
fileutils.FileExists(rcfile)
suite.NoError(err)
suite.Contains(string(fileutils.ReadFileUnsafe(rcfile)), ts.Dirs.DefaultBin, "PATH does not have your project in it")
}
Expand Down
Loading