Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • semantic-release/bzlmod
1 result
Show changes
Commits on Source (4)
registry=https://gitlab.arm.com/api/v4/groups/semantic-release/-/packages/npm/
......@@ -18,6 +18,7 @@ Files:
package.json
icon.svg
.husky/*
.npmrc
Copyright: 2022 Arm Ltd. <developers@arm.com>
License: CC0-1.0
......
## [1.2.2](https://git.gitlab.arm.com/semantic-release/bzlmod/compare/v1.2.1...v1.2.2) (2023-12-01)
### Bug Fixes
- correctly search for `module` definition
([7c9e4bd](https://git.gitlab.arm.com/semantic-release/bzlmod/commit/7c9e4bd3528586dcdba4a18a61d140decca1558a))
## [1.2.1](https://git.gitlab.arm.com/semantic-release/bzlmod/compare/v1.2.0...v1.2.1) (2023-12-01)
### Bug Fixes
......
......@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"@bazel/buildozer": "^6.4.0",
"@bazel/buildozer": "^6",
"@semantic-release/error": "^3 || ^4",
"debug": "^4",
"execa": "^8||^7||^6",
......@@ -21,8 +21,8 @@
"@commitlint/config-conventional": "^18",
"@semantic-release/changelog": "^6",
"@semantic-release/commit-analyzer": "^11",
"@semantic-release/config-gitlab-npm": "https://gitlab.arm.com/semantic-release/config-gitlab-npm/-/releases/v1.1.0/downloads/package.tar.gz",
"@semantic-release/config-release-channels": "https://gitlab.arm.com/semantic-release/config-release-channels/-/releases/v1.0.1/downloads/package.tar.gz",
"@semantic-release/config-gitlab-npm": "^1",
"@semantic-release/config-release-channels": "^1",
"@semantic-release/exec": "^6",
"@semantic-release/git": "^10",
"@semantic-release/gitlab": "^12",
......
......@@ -48,7 +48,7 @@ export async function verifyConditions(pluginConfig, context) {
})();
debug('Finding `module` in `%s`', bzlmod);
const {stdout} = await $`buildozer -root_dir ${cwd} ${'print kind'} //${filepath}:all`;
const {stdout} = await $`buildozer -root_dir ${cwd} ${'print kind'} //${filepath}:%module`;
if (stdout !== 'module') {
throw new SemanticReleaseError(
`\`${bzlmod}\` \`module\` does not exist`,
......
......@@ -28,7 +28,7 @@ test.beforeEach(async t => {
t.context.filepath = path.join(dir, 'nested', 'MODULE.bazel');
await mkdir(path.dirname(t.context.filepath));
await writeFile(t.context.filepath, 'module(version = "0.0.0")');
await writeFile(t.context.filepath, 'module(version = "0.0.0")\nbazel_dep(name = "foo")');
await git.init({fs, dir});
t.context.date = new Date(2022, 5, 6, 6, 6, 6);
......@@ -121,7 +121,7 @@ test('Throws `EBZLMODREAD` error when failed to read `.+`', failure, async t =>
});
test('Throws `EBZLMODMISSINGMODULE` error when `.+` `module` does not exist', failure, async t => {
await writeFile(t.context.filepath, 'module()\nbazel_dep(name ="whatever", version = "0.0.0")');
await writeFile(t.context.filepath, 'bazel_dep(name ="whatever", version = "0.0.0")');
});
test('Throws `EBZLMODWRITE` error when failed to write `.+`', failure, async t => {
......