Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion floability/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def create_conda_pack_from_yml(
print(f"[environment] Post-installation script executed successfully.")

print(f"[environment] Packing environment into '{output_file}'...")

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment explaining why GDB files are being excluded from the packed environment. This would help future maintainers understand the rationale behind this exclusion (e.g., reducing package size, removing unnecessary debug symbols).

Suggested change
print(f"[environment] Packing environment into '{output_file}'...")
print(f"[environment] Packing environment into '{output_file}'...")
# Exclude GDB files to reduce package size and remove unnecessary debug symbols,
# as they are not required for running the environment.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Add comment - # Exclude GDB debug files which contain absolute symlinks that break conda-pack

cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force"]

# Exclude GDB debug files which contain absolute symlinks that break conda-pack
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force", "--exclude", "share/gdb/*"]

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is trailing whitespace at the end of this line. Remove the trailing space after the closing bracket for consistency with code style.

Suggested change
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force", "--exclude", "share/gdb/*"]
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force", "--exclude", "share/gdb/*"]

Copilot uses AI. Check for mistakes.

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace at the end of the line should be removed for consistency with the project's formatting standards.

Suggested change
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force", "--exclude", "share/gdb/*"]
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force", "--exclude", "share/gdb/*"]

Copilot uses AI. Check for mistakes.
subprocess.run(cmd_pack, check=True)

print(f"[environment] Environment successfully packed: {output_file}")
Expand Down