-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 devbox-containerbase-install
- Loading branch information
Showing
22 changed files
with
274 additions
and
141 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,5 @@ | ||
FROM ghcr.io/containerbase/devcontainer:13.7.2 | ||
FROM ghcr.io/containerbase/devcontainer:13.7.5 | ||
|
||
# https://github.com/pnpm/pnpm/issues/8971 | ||
# renovate: datasource=npm | ||
RUN install-tool pnpm 9.15.4 |
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 |
---|---|---|
|
@@ -28,6 +28,18 @@ jest.mock('../../../util/host-rules', () => mockDeep()); | |
jest.mock('../../../util/http'); | ||
jest.mock('../../datasource', () => mockDeep()); | ||
|
||
const requirementsWithUv = `# This file was autogenerated by uv via the following command: | ||
# uv pip compile --generate-hashes --output-file=requirements.txt --universal requirements.in | ||
attrs==21.2.0 \ | ||
--hash=sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1 \ | ||
--hash=sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb | ||
# via -r requirements.in | ||
setuptools==59.2.0 \ | ||
--hash=sha256:157d21de9d055ab9e8ea3186d91e7f4f865e11f42deafa952d90842671fc2576 \ | ||
--hash=sha256:4adde3d1e1c89bde1c643c64d89cdd94cbfd8c75252ee459d4500bccb9c7d05d | ||
# via -r requirements.in | ||
`; | ||
|
||
function getCommandInHeader(command: string) { | ||
return `# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
|
@@ -488,6 +500,16 @@ describe('modules/manager/pip-compile/artifacts', () => { | |
); | ||
}); | ||
|
||
it('returns extracted arguments for uv ', () => { | ||
expect( | ||
constructPipCompileCmd( | ||
extractHeaderCommand(requirementsWithUv, 'subdir/requirements.txt'), | ||
), | ||
).toBe( | ||
'uv pip compile --generate-hashes --output-file=requirements.txt --universal requirements.in', | ||
); | ||
}); | ||
|
||
it('returns --no-emit-index-url when credentials are found in PIP_INDEX_URL', () => { | ||
process.env.PIP_INDEX_URL = 'https://user:[email protected]/pypi/simple'; | ||
expect( | ||
|
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
Oops, something went wrong.