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

Install recipes only for deployer 6 and earlier #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuriystovbur
Copy link
Contributor

Reverted to the deployer/recipes package installation.

Fix for issue #10

skipDeployerInstall?: string,
}

const getInstalledDeployerMajorVersion = async (): Promise<number|null> => {
const {stdout} = await execa('composer', ['global', 'show', 'deployer/deployer']);
Copy link
Owner

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.

Copy link
Owner

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]);
Copy link
Owner

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

Copy link
Contributor Author

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.

Copy link
Owner

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.

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.

2 participants