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

feat(modules): allow opting out of build staging #5890

Merged
merged 1 commit into from Mar 28, 2024

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Mar 28, 2024

What this PR does / why we need it:

Here, we make the local config field (previously only available to exec modules) available for all module types.

When used, it maps to the buildAtSource field of any generated Build actions in the module conversion process.

This is done because some users/projects that haven't migrated from modules to actions yet need to reference symlinked directories in their builds, where the simplest solution appears to be to simply opt out of build staging for those modules.

Which issue(s) this PR fixes:

Workaround for #2382.

Notes for reviewer:

Will this cause problems with build copying? Does allowing this violate any subtle invariants?

@thsig thsig requested a review from edvald March 28, 2024 11:40
core/src/config/module.ts Outdated Show resolved Hide resolved
core/src/config/module.ts Outdated Show resolved Hide resolved
@thsig thsig force-pushed the modules-make-local-option-global branch from 32f7f71 to 305bd76 Compare March 28, 2024 13:00
edvald
edvald previously approved these changes Mar 28, 2024
@thsig
Copy link
Collaborator Author

thsig commented Mar 28, 2024

There were a few test failures, should be good to go now @edvald.

edvald
edvald previously approved these changes Mar 28, 2024
Here, we make the `local` config field (previously only available to
`exec` modules) available for all module types.

When used, it maps to the `buildAtSource` field of any generated Build
actions in the module conversion process.

This is done because some users/projects need to reference symlinked
directories in their builds, where the simplest solution appears to be
to simply opt out of build staging for those modules.
@thsig thsig force-pushed the modules-make-local-option-global branch from 5104b54 to a26004c Compare March 28, 2024 15:23
@thsig thsig enabled auto-merge March 28, 2024 17:09
@thsig thsig added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit a4fdc3b Mar 28, 2024
41 checks passed
@thsig thsig deleted the modules-make-local-option-global branch March 28, 2024 17:35
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.

None yet

2 participants