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

refactor: simplify swc_action(inputs) creation #232

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Feb 8, 2024

Type of change

  • Refactor (a code change that neither fixes a bug or adds a new feature)

Test plan

  • Covered by existing test cases

@jbedard jbedard requested a review from alexeagle February 8, 2024 09:25
inputs.extend(ctx.toolchains["@aspect_rules_swc//swc:toolchain_type"].swcinfo.tool_files)
inputs.extend(ctx.files.plugins)
inputs.extend(plugin_cache)
src_inputs = [src] + inputs
Copy link
Member

Choose a reason for hiding this comment

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

how come we no longer need to include the swcinfo.tool_files?

Copy link
Member Author

Choose a reason for hiding this comment

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

Everything is already in inputs. See the first couple lines of _swc_impl

@jbedard jbedard requested a review from alexeagle February 8, 2024 19:58
Copy link
Member

@thesayyn thesayyn left a comment

Choose a reason for hiding this comment

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

LGTM

@jbedard jbedard merged commit cbb6b2f into main Feb 9, 2024
10 checks passed
@jbedard jbedard deleted the action-inputs branch February 9, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants