Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[internal] Fix Go compilation of transitive dependencies #13083

Merged

Conversation

Eric-Arellano
Copy link
Contributor

BuiltGoPackage was not properly preserving transitive dependencies, so at link time we would get errors like:

E           pants.engine.process.ProcessExecutionFailure: Process 'Link Go binary.' failed with exit code 1.
E           stdout:
E           cannot find package rsc.io/quote (using -importcfg)
E
E           stderr:
E           /opt/homebrew/Cellar/go/1.17/libexec/pkg/tool/darwin_arm64/link: cannot open file : open : no such file or directory

This fixes the issue and adds tests for import_analysis.py and build_go_pkg.py.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Copy link
Contributor

@tdyas tdyas left a comment

Choose a reason for hiding this comment

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

Thanks!

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano
Copy link
Contributor Author

Woot, when combined with #13080, package_binary_integration_test.py now passes!

@Eric-Arellano Eric-Arellano enabled auto-merge (squash) October 2, 2021 15:59
…pkg-transitive-deps

[ci skip-rust]

[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 724615b into pantsbuild:main Oct 2, 2021
@Eric-Arellano Eric-Arellano deleted the fix-build-go-pkg-transitive-deps branch October 2, 2021 18:48
@stuhood stuhood mentioned this pull request Oct 11, 2021
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.

2 participants