-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Install recipes only for deployer 6 and earlier #11
base: master
Are you sure you want to change the base?
Install recipes only for deployer 6 and earlier #11
Conversation
skipDeployerInstall?: string, | ||
} | ||
|
||
const getInstalledDeployerMajorVersion = async (): Promise<number|null> => { | ||
const {stdout} = await execa('composer', ['global', 'show', 'deployer/deployer']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work correctly, since this is performed in an action, it won't e installed yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, dw I see this is done after install.
@@ -15,6 +25,16 @@ export default async (options: DeployerOptions): Promise<void> => { | |||
|
|||
await execa('composer', ['global', 'require', deployerPackage]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're also going to need to install the correct deployer package. I think we should check the passed version string and then install only deployer if it's >= v7, otherwise install v6 + recipes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployer version is checked after it is installed. Based on this, a decision is made to install recipes.
And now deployer latest version = 6 - recipies will be installed.
Deployer v7 will be installed without recipes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is there will be breaking changes between the versions. We need to know what version the user is using, rather than what the latest is.
Reverted to the deployer/recipes package installation.
Fix for issue #10