Skip to content

Commit

Permalink
Fix #1241: nixpack plan generates an invalid toml file for python pro…
Browse files Browse the repository at this point in the history
…jects containing a .tool-versions file.

I assume that outputting those lines before the toml or json file is not intended. If it is then please ignore this commit.

Another option might be to print these messages to stderr instead?
  • Loading branch information
Nevsor authored Dec 13, 2024
1 parent c42c9e9 commit 4057946
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/providers/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl Provider for PythonProvider {
if let Some(poetry_version) =
PythonProvider::parse_tool_versions_poetry_version(file_content)?
{
println!("Using poetry version from .tool-versions: {poetry_version}");
version = poetry_version;
}
}
Expand Down Expand Up @@ -114,7 +113,6 @@ impl Provider for PythonProvider {
if let Some(uv_version) =
PythonProvider::parse_tool_versions_uv_version(file_content)?
{
println!("Using uv version from .tool-versions: {uv_version}");
version = uv_version;
}
}
Expand Down

0 comments on commit 4057946

Please sign in to comment.