Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it rootless #3

Open
rwaffen opened this issue Sep 6, 2024 · 0 comments
Open

Make it rootless #3

rwaffen opened this issue Sep 6, 2024 · 0 comments

Comments

@rwaffen
Copy link
Member

rwaffen commented Sep 6, 2024

when running as nonroot in the container it fails to acknowledge that the mounted dir is a git-repo. if run as root it's not problem ¯\_(ツ)_/¯

docker run --rm -it -v $PWD:/data semantic-local
[10:52:35 AM] [semantic-release] › ℹ  Running semantic-release version 24.1.0
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[10:52:35 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[10:52:35 AM] [semantic-release] › ✘  ENOGITREPO Not running from a git repository.
The semantic-release command must be executed from a Git repository.

The current working directory is /data.

Please verify your CI configuration to make sure the semantic-release command is executed from the root of the cloned repository.

AggregateError:
    SemanticReleaseError: Not running from a git repository.
        at default (file:///npm/node_modules/semantic-release/lib/get-error.js:6:10)
        at default (file:///npm/node_modules/semantic-release/lib/verify.js:15:17)
        at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
        at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
        at async default (file:///npm/node_modules/semantic-release/cli.js:55:5)
    at default (file:///npm/node_modules/semantic-release/lib/verify.js:41:11)
    at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
    at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
    at async default (file:///npm/node_modules/semantic-release/cli.js:55:5) {
  errors: [
    SemanticReleaseError: Not running from a git repository.
        at default (file:///npm/node_modules/semantic-release/lib/get-error.js:6:10)
        at default (file:///npm/node_modules/semantic-release/lib/verify.js:15:17)
        at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
        at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
        at async default (file:///npm/node_modules/semantic-release/cli.js:55:5) {
      code: 'ENOGITREPO',
      details: 'The `semantic-release` command must be executed from a Git repository.\n' +
        '\n' +
        'The current working directory is `/data`.\n' +
        '\n' +
        'Please verify your CI configuration to make sure the `semantic-release` command is executed from the root of the cloned repository.',
      semanticRelease: true
    }
  ]
}%
rwaffen added a commit that referenced this issue Sep 6, 2024
Signed-off-by: Robert Waffen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant