Skip to content

Fixed absolute symlink issue for gdb files while packing conda env - #57

Merged
saifulislampi merged 2 commits into
mainfrom
fix/gdb-symlink-conda
Nov 5, 2025
Merged

Fixed absolute symlink issue for gdb files while packing conda env#57
saifulislampi merged 2 commits into
mainfrom
fix/gdb-symlink-conda

Conversation

@saifulislampi

Copy link
Copy Markdown
Collaborator

No description provided.

@saifulislampi
saifulislampi requested a review from Copilot November 5, 2025 21:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the conda-pack command to exclude GDB debugging files from the packed environment archive, potentially reducing the packed environment size.

  • Added --exclude "share/gdb/*" flag to the conda-pack command to filter out GDB debugger files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread floability/environment.py

print(f"[environment] Packing environment into '{output_file}'...")
cmd_pack = ["conda-pack", "-p", env_path, "-o", output_file, "--force"]
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.
Comment thread floability/environment.py
@@ -157,7 +157,7 @@ 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

Copilot AI commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

@saifulislampi I've opened a new pull request, #58, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

@saifulislampi I've opened a new pull request, #59, to work on those changes. Once the pull request is ready, I'll request review from you.

Added exclusion for GDB debug files in conda-pack command.
@saifulislampi
saifulislampi requested a review from Copilot November 5, 2025 21:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread floability/environment.py
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.

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.
@saifulislampi
saifulislampi merged commit 55e28d0 into main Nov 5, 2025
6 checks passed
@saifulislampi
saifulislampi deleted the fix/gdb-symlink-conda branch April 9, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants