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

Delete replace-namespace.sh after replacements are done #322

Open
1 task done
ocean90 opened this issue Jan 7, 2025 · 3 comments
Open
1 task done

Delete replace-namespace.sh after replacements are done #322

ocean90 opened this issue Jan 7, 2025 · 3 comments

Comments

@ocean90
Copy link
Contributor

ocean90 commented Jan 7, 2025

Is your enhancement related to a problem? Please describe.

I noticed that replace-namespace.sh is part of the shipped plugin but it's not used on production. I'm suggesting to remove it from the plugin after the replacements are done.

I'm not sure if it should be added to https://github.com/10up/wp-compat-validation-tool/blob/aff3672e7ab5413fa99eab65998675f8da65eea3/replace-namespace.sh#L22 or

"post-install-cmd": [
"./10up-lib/wp-compat-validation-tool/replace-namespace.sh SimpleLocalAvatarsValidator"
],
"post-update-cmd": [
"./10up-lib/wp-compat-validation-tool/replace-namespace.sh SimpleLocalAvatarsValidator"
]
.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ocean90 ocean90 added the type:enhancement New feature or request. label Jan 7, 2025
@jeffpaul
Copy link
Member

jeffpaul commented Jan 7, 2025

@faisal-alvi this sound about right to you?

@vikrampm1 vikrampm1 removed the type:enhancement New feature or request. label Jan 7, 2025
@gsarig
Copy link

gsarig commented Jan 8, 2025

@jeffpaul This was introduced here. I'm not sure if I miss any other context, but it seems to me that the specific script is only needed during the build, and doesn't have to be part of the production. If that's the case, I wonder if the simplest way to exclude it is by adding it to .distignore.

@faisal-alvi
Copy link
Member

@gsarig I agree, the replace-namespace.sh script should only be used for the development version of the plugin. Adding it to the .distignore sounds fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

5 participants