Skip to content

Commit a809a8f

Browse files
committed
chore: release v5.2.1
1 parent 63a29e9 commit a809a8f

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.2.1](https://github.com/SocketDev/socket-lib/releases/tag/v5.2.1) - 2026-01-06
9+
10+
### Fixed
11+
12+
- **releases**: Fixed "Text file busy" errors when executing downloaded binaries
13+
- Changed `downloadGitHubRelease()` to use synchronous `chmodSync()` instead of async `chmod()`
14+
- Ensures file system operations complete before binary execution
15+
- Prevents race conditions in CI/CD environments where async operations may not fully flush to disk
16+
817
## [5.2.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.2.0) - 2026-01-06
918

1019
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/lib",
3-
"version": "5.2.0",
3+
"version": "5.2.1",
44
"packageManager": "pnpm@10.27.0",
55
"license": "MIT",
66
"description": "Core utilities and infrastructure for Socket.dev security tools",

test/unit/git-extended.test.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ describe('git extended tests', () => {
206206
await runWithTempDir(async tmpDir => {
207207
// Initialize a git repo
208208
spawnSync('git', ['init'], { cwd: tmpDir })
209-
spawnSync('git', ['config', 'user.name', 'Test User'], { cwd: tmpDir })
209+
spawnSync('git', ['config', 'user.name', 'Test User'], {
210+
cwd: tmpDir,
211+
})
210212
spawnSync('git', ['config', 'user.email', 'test@example.com'], {
211213
cwd: tmpDir,
212214
})
@@ -264,7 +266,7 @@ describe('git extended tests', () => {
264266
const isChangedAfter = await isChanged(testFile, { cwd: tmpDir })
265267
expect(typeof isChangedAfter).toBe('boolean')
266268
}, 'git-ops-')
267-
})
269+
}, 30_000)
268270

269271
it('should detect untracked files', async () => {
270272
await runWithTempDir(async tmpDir => {

0 commit comments

Comments
 (0)