-
Notifications
You must be signed in to change notification settings - Fork 388
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
Schematics Migrations after update to 2211.19 are not executed #18557
Comments
Do you have a trailing
I have a separate issue that the migration fails due to a missing file under node_modules directory
The directory If I upgrade rxjs to 7.8.1 prior to running the migration, it isn't listed in the package.json upgrades but it still fails on the same step. Full package.json dependencies and devDependencies are as follows
Edit: I was able to resolve this issue by removing rxjs from package.json dependencies prior to running the migration. It is added again by the migration where it was previously failing.
|
@timdk I also tried with Here, the logic is explained about the versions and when a migration instruction is being executed (even from a member of the spartacus core team..). I have enhanced the ticket description with my assumption, why it does not work |
You are right, also in migrations.json it has a patch version. I was able to resolve my issue by removing rxjs from package.json prior to running the migration. I updated my original comment. |
Reason of the problem: The ending Workaround 1: Please find-replace all occurrences of Workaround 2: (didn't check it but I guess it should work): Alternatively you can jsut run Note: The ending |
@Platonn thanks for your input. My Assumption was also, that the version could be the problem.. but it does not seem to be: I have built and deployed spartacus 2211.19.0 to our package registry: When I now run the command By the way, Which sub version of the released version am I supposed to use? In the github repo, there are several sub versions for 2211.19 and 2211.20: In the docs, there is no reference, which sub version is actually released to the SAP NPM Repo: |
Hi @janwidmer, You should be using the version that has nothing appended to it. Those are our official releases. The best way to know what is the latest version of a release is to use the tags: You can checkout a commit associated to a tag, build the libraries, publish it using verdaccio |
We tested migrations with Verdaccio on the release branch When looking at I would advise you to update If you go to the |
@RadhepS Thanks for the explanations @kpawelczak I have updated Regarding Verdacchio, I tried following the instructions on how to publish the package, but I always receive an error. At the end, it should not matter, how the packages where published, as long as the packages are available in the correct version, right? We publish it by running the following commands:
From what I have seen, these are also the commands which are being used in verdacchio to publish Here is the zip file of the package, that I have published to our private repo: I have also tried comparing this zip file with the one from the SAP Private Repo of spartacus to see if there are any differences in the files, but havent seen any.. |
Describe the bug
When Updating an existing Spartacus Project from Version 6.8.0 from a selfhosted Spartacus Package Registry by following the update instructions on https://github.com/SAP/spartacus/blob/develop/docs/self-publishing-spartacus-libraries.md, the only changes are done in the file
package.json
.No schematics update migrations are executed.
When updating from the official SAP Private Repository, the schematics work as expected.
Tell us the version of Spartacus
To Reproduce
Steps to reproduce the behavior:
Create Spartacus in version 6.8.0
Upgrade it to version 2211.19.0 (actual current spartacus version when building the lib manually)
Expected behavior
The
ng update
migrations schould be runScreenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Running the command
ng update @spartacus/[email protected]
/ng update @spartacus/[email protected]
it just stops after updating thepackage.json
:According to this article it says:
"The command ng update @my/lib@version downloads the specified version of the library and launches all schematics listed in its migrations.json that have an appropriate property of "version" within the semver range from
>installedVersion
to<=targetVersion
."The text was updated successfully, but these errors were encountered: