Skip to content

use BuildTags in find package step#82

Merged
hugelgupf merged 1 commit intou-root:mainfrom
rminnich:tags
Jul 27, 2023
Merged

use BuildTags in find package step#82
hugelgupf merged 1 commit intou-root:mainfrom
rminnich:tags

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 a team, 10000TB and ChriMarMe 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