-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/datasource-release-interception
- Loading branch information
Showing
28 changed files
with
475 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/containerbase/devcontainer:11.11.12 | ||
FROM ghcr.io/containerbase/devcontainer:11.11.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.12.5 | ||
3.12.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import { | |
} from '../../../../test/exec-util'; | ||
import { env, fs, git, mocked } from '../../../../test/util'; | ||
import { GlobalConfig } from '../../../config/global'; | ||
import type { RepoGlobalConfig, UpdateType } from '../../../config/types'; | ||
import type { RepoGlobalConfig } from '../../../config/types'; | ||
import * as docker from '../../../util/exec/docker'; | ||
import { ExecError } from '../../../util/exec/exec-error'; | ||
import * as _hostRules from '../../../util/host-rules'; | ||
|
@@ -132,7 +132,6 @@ describe('modules/manager/cargo/artifacts', () => { | |
packageName: 'dep1', | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.1', | ||
updateType: 'lockfileUpdate' satisfies UpdateType as UpdateType, | ||
}, | ||
]; | ||
expect( | ||
|
@@ -291,21 +290,18 @@ describe('modules/manager/cargo/artifacts', () => { | |
packageName: 'dep1', | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.1', | ||
updateType: 'lockfileUpdate' satisfies UpdateType as UpdateType, | ||
}, | ||
{ | ||
depName: 'dep2', | ||
packageName: 'dep2', | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.2', | ||
updateType: 'lockfileUpdate' satisfies UpdateType as UpdateType, | ||
}, | ||
{ | ||
depName: 'dep3', | ||
packageName: 'dep3', | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.3', | ||
updateType: 'lockfileUpdate' satisfies UpdateType as UpdateType, | ||
}, | ||
]; | ||
|
||
|
@@ -332,62 +328,6 @@ describe('modules/manager/cargo/artifacts', () => { | |
]); | ||
}); | ||
|
||
it('runs cargo update precise only for lockfile update', async () => { | ||
fs.statLocalFile.mockResolvedValueOnce({ name: 'Cargo.lock' } as any); | ||
fs.findLocalSiblingOrParent.mockResolvedValueOnce('Cargo.lock'); | ||
git.getFile.mockResolvedValueOnce('Old Cargo.lock'); | ||
const execSnapshots = mockExecAll(); | ||
fs.findLocalSiblingOrParent.mockResolvedValueOnce('Cargo.lock'); | ||
fs.readLocalFile.mockResolvedValueOnce('New Cargo.lock'); | ||
const updatedDeps = [ | ||
{ | ||
depName: 'dep1', | ||
packageName: 'dep1', | ||
updateType: 'minor' satisfies UpdateType as UpdateType, | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.1', | ||
}, | ||
{ | ||
depName: 'dep2', | ||
packageName: 'dep2', | ||
updateType: 'minor' satisfies UpdateType as UpdateType, | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.2', | ||
}, | ||
{ | ||
depName: 'dep3', | ||
packageName: 'dep3', | ||
updateType: 'lockfileUpdate' satisfies UpdateType as UpdateType, | ||
lockedVersion: '1.0.0', | ||
newVersion: '1.0.3', | ||
}, | ||
]; | ||
expect( | ||
await cargo.updateArtifacts({ | ||
packageFileName: 'Cargo.toml', | ||
updatedDeps, | ||
newPackageFileContent: '{}', | ||
config, | ||
}), | ||
).toEqual([ | ||
{ file: { contents: undefined, path: 'Cargo.lock', type: 'addition' } }, | ||
]); | ||
expect(execSnapshots).toMatchObject([ | ||
{ | ||
cmd: | ||
'cargo update --config net.git-fetch-with-cli=true' + | ||
' --manifest-path Cargo.toml' + | ||
' --workspace', | ||
}, | ||
{ | ||
cmd: | ||
'cargo update --config net.git-fetch-with-cli=true' + | ||
' --manifest-path Cargo.toml' + | ||
' --package [email protected] --precise 1.0.3', | ||
}, | ||
]); | ||
}); | ||
|
||
it('returns updated Cargo.lock when there are no more dependencies to update', async () => { | ||
fs.findLocalSiblingOrParent.mockResolvedValueOnce('Cargo.lock'); | ||
fs.readLocalFile.mockResolvedValueOnce('New Cargo.lock'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.