question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build_command not found in path

See original GitHub issue

The problem

The build_command not found in path for GitHub Actions

Expected behavior

The build_command command runs successfully.

Additional context

[semantic_release]
version_variable=pyproject.toml:version
upload_to_pypi=true
check_build_status=false
remove_dist=false
hvcs=gitlab
build_command="poetry publish --build"
 $ pip install poetry
<snip>
 $ poetry config virtualenvs.create false
 $ poetry install
<snip>
 $ pip install python-semantic-release
<snip>
 $ semantic-release publish
 Creating new version
 Current version: 1.6.1
 Bumping with a minor version to 1.7.0
 Pushing new version
 Building distributions
 Running "poetry publish --build"
 /bin/bash: poetry publish --build: command not found
 error: Encountered a bad command exit code!
 error: 
 error: Command: '"poetry publish --build"'
 error: 
 error: Exit code: 127
 error: 
 error: Stdout: already printed
 error: 
 error: Stderr: already printed
 error: 

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
browniebrokecommented, Oct 15, 2020

I recently migrated a project which was using PSR on Github actions to Poetry and here is the config I’m using:

[tool.semantic_release]
version_variable = [
    "deezer/__init__.py:__version__",
    "pyproject.toml:version"
]
build_command = "pip install poetry && poetry build"

This works because a couple of things work nicely together:

Hope this helps!

0reactions
github-actions[bot]commented, Nov 15, 2022

This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where can I find the 'build' command needed to ... - Ask Ubuntu
The solution is to use bash:~/src/edk2$ source edksetup.sh bash:~/src/edk2$ build. The effect of export command inside edksetup.sh is not ...
Read more >
build: command not found
build: command not found. Have You tried accessing the binary with the full path? ... If it's empty, You may set the PATH...
Read more >
How To Fix “Make: Command Not Found” Error
The Make Command Not Found error indicates that the make utility is either not installed on the system or it's not present in...
Read more >
Build command not found. 'go' - yaml - Stack Overflow
I have set up go in setup step. I don't know why it is telling that it did not found the go command....
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. ... npm ERR! code 1 npm ERR! path C:\Users\ricar\Desktop\mflix-js\…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found