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

Option to install layer dependencies with --ignore-scripts #27038

Open
2 of 4 tasks
kovaletsyurii-hue opened this issue May 2, 2024 · 2 comments
Open
2 of 4 tasks

Option to install layer dependencies with --ignore-scripts #27038

kovaletsyurii-hue opened this issue May 2, 2024 · 2 comments

Comments

@kovaletsyurii-hue
Copy link

kovaletsyurii-hue commented May 2, 2024

Describe the feature

I am working on the project that extends a nuxt layer from a private repository

extends: [
		[
			'gitlab:username/repository/name',
			{ install: true }
		],
	],

With postinstall script that looks like
"path-package; nuxt prepare"

The yarn install running with this configuration results in a recursive call to the postinstall script.
Is there a possibility to set the --ignore-scripts option to the install script of the repository that is being extended?

Note: patch-package script is needed here to fix issue with extending gitlab subgroups repositories
(PR with fix unjs/giget#141)

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@MuhammadM1998
Copy link
Contributor

Does the install works for you or do you have to re-specify the dependencies in your layer again in your main app?

@kovaletsyurii-hue
Copy link
Author

@MuhammadM1998 The install works for me, I just need to skip postinstall script after Layer dependencies installation. Because In my case it causes recursive postinstall script calling

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

No branches or pull requests

2 participants