You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
causes the package file to not be found. The initial implementation (that I had been testing) had the cwdFile in artifact.ts set to cwdFile: '.',. They may be why it stopped working when the feature was released as that "dot" value was changed to packageFileName in the final release.
Did you see anything helpful in debug logs?
I have the following environment variables defined for my particular environment. You will see these reflected in the logs
DEBUG: Using localDir: /scratch/repos/bitbucket/org/project (repository=org/project)
DEBUG: Executing command (repository=org/project, branch=renovate/boto3-1.x)
"command": "hashin boto3==1.14.12 -r requirements/production.txt"
DEBUG: Failed to update requirements/production.txt file (repository=org/project, branch=renovate/boto3-1.x)
"err": {
"killed": false,
"code": 1,
"signal": null,
"cmd": "hashin boto3==1.14.12 -r requirements/production.txt",
"stdout": "",
"stderr": "Traceback (most recent call last):\n File \"/usr/local/python/3.8.3/bin/hashin\", line 8, in <module>\n
sys.exit(main())\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 836, in main\n
return run(\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 135, in run\n
return run_packages(specs, requirements_file, *args, **kwargs)\n File \"/usr/local/python/3.8.3/lib/
python3.8/site-packages/hashin.py\", line 261, in run_packages\n with open(file) as f:\n
FileNotFoundError: [Errno 2] No such file or directory: 'requirements/production.txt'\n",
"message": "Command failed: hashin boto3==1.14.12 -r requirements/production.txt\nTraceback
(most recent call last):\n File \"/usr/local/python/3.8.3/bin/hashin\", line 8, in <module>\n
sys.exit(main())\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 836, in main\n
return run(\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 135, in run\n
return run_packages(specs, requirements_file, *args, **kwargs)\n File \"/usr/local/python/3.8.3/lib/
python3.8/site-packages/hashin.py\", line 261, in run_packages\n with open(file) as f:\n
FileNotFoundError: [Errno 2] No such file or directory: 'requirements/production.txt'\n",
"stack": "Error: Command failed: hashin boto3==1.14.12 -r requirements/production.txt\nTraceback
(most recent call last):\n File \"/usr/local/python/3.8.3/bin/hashin\", line 8, in <module>\n
sys.exit(main())\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 836, in main\n
return run(\n File \"/usr/local/python/3.8.3/lib/python3.8/site-packages/hashin.py\", line 135, in run\n
return run_packages(specs, requirements_file, *args, **kwargs)\n File \"/usr/local/python/3.8.3/lib/
python3.8/site-packages/hashin.py\", line 261, in run_packages\n with open(file) as f:\n
FileNotFoundError: [Errno 2] No such file or directory: 'requirements/production.txt'\n\n
at ChildProcess.exithandler (child_process.js:303:12)\n at ChildProcess.emit (events.js:315:20)\n
at ChildProcess.EventEmitter.emit (domain.js:482:12)\n at maybeClose (internal/child_process.js:1021:16)\n
at Socket.<anonymous> (internal/child_process.js:443:11)\n at Socket.emit (events.js:315:20)\n
at Socket.EventEmitter.emit (domain.js:482:12)\n at Pipe.<anonymous> (net.js:674:12)"
}
If I am reading the logic of the cwd variable builder correctly, then I think it is building the following path
/scratch/repos/bitbucket/org/project/requirements
And then trying to execute hashin from within that directory
I think the bug is related to the subDirectory that my package file resides in. This was functioning before the addition of the hashing improvements though, so it feels like a regression.
Additional context
The text was updated successfully, but these errors were encountered:
What Renovate type are you using?
Self-hosted
Describe the bug
The recently added hashing for pip_requirements appears to supply
cwdFile
https://github.com/renovatebot/renovate/blob/master/lib/manager/pip_requirements/artifacts.ts#L32
that, when combined with the
cwd
path constructed inexec
renovate/lib/util/exec/index.ts
Line 103 in 3c3f259
causes the package file to not be found. The initial implementation (that I had been testing) had the
cwdFile
in artifact.ts set tocwdFile: '.',
. They may be why it stopped working when the feature was released as that "dot" value was changed topackageFileName
in the final release.Did you see anything helpful in debug logs?
I have the following environment variables defined for my particular environment. You will see these reflected in the logs
My
localDir
is detected asIf I am reading the logic of the
cwd
variable builder correctly, then I think it is building the following pathAnd then trying to execute hashin from within that directory
Which will not find the file
To Reproduce
I think the bug is related to the subDirectory that my package file resides in. This was functioning before the addition of the hashing improvements though, so it feels like a regression.
Additional context
The text was updated successfully, but these errors were encountered: