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

use BuildTags in find package step #82

Merged
merged 1 commit into from
Jul 27, 2023
Merged

use BuildTags in find package step #82

merged 1 commit into from
Jul 27, 2023

Conversation

rminnich
Copy link
Member

If a user sets, e.g., -tags tinygo, that tag must be used in the loadPkgs step, as well as the build step, else directories will be populated with files that can not be used.

Example: if we run
u-root -tags tinygo

files are copied to the build directory that should not be, and build steps will get an error.

With this change, tags will control both the file copy step as well as the build step.

Signed-off-by: Ronald G. Minnich rminnich@google.com

@rminnich rminnich requested a review from hugelgupf January 19, 2023 04:33
@rminnich
Copy link
Member Author

Maybe it's time to drop 1.15 and 1.16? the failure is not related to this code at all.

@rminnich rminnich requested review from 10000TB, ChriMarMe and a team January 19, 2023 19:00
@hugelgupf
Copy link
Member

Do you still need this? Looks like it might be useful. Could you add a tinygo test?

If a user sets, e.g., -tags tinygo, that tag must be
used in the loadPkgs step, as well as the build step,
else directories will be populated with files that
can not be used.

Example: if we run
u-root -tags tinygo

files are copied to the build directory that should not be,
and build steps will get an error.

With this change, tags will control both the file copy
step as well as the build step.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
@hugelgupf hugelgupf merged commit e2d80c4 into u-root:main Jul 27, 2023
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