We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74e546 commit e85a02dCopy full SHA for e85a02d
python/private/pypi/dependency_resolver/dependency_resolver.py
@@ -170,6 +170,12 @@ def main(
170
171
if UPDATE:
172
print("Updating " + requirements_file_relative)
173
+
174
+ # Make sure the output file for pip_compile exists. It won't if we are on Windows and --enable_runfiles is not set.
175
+ if not os.path.exists(requirements_file_relative):
176
+ os.makedirs(os.path.dirname(requirements_file_relative), exist_ok=True)
177
+ shutil.copy(resolved_requirements_file, requirements_file_relative)
178
179
if "BUILD_WORKSPACE_DIRECTORY" in os.environ:
180
workspace = os.environ["BUILD_WORKSPACE_DIRECTORY"]
181
requirements_file_tree = os.path.join(workspace, requirements_file_relative)
0 commit comments