Use an explicit MDB-Version with GIT


Topic: Use an explicit MDB-Version with GIT

Dev-Team HCH pro premium priority vip early access asked 5 years ago

Dear mdb-team

We've been using MDB for about 6 months now. First we started using it on our existing AngularJS-App (the RAW-Version). Two months ago we switched to Angular 7 and started using the Angular version of MDB.

Now recently our Buildserver stopped working. We then found out, that it started using the Android 8 version of MDB. As the Buildserver cleans its workpath and runs an npm install we automatically got the Angular 8 version of MDB. We now upgraded our App to Angular 8 and it works again.

Question for the future is, how can we explicitly use a version (for example 7.5.4) from the git-repo? I haven't found anything like that in the documentation. I have not managed to clone anything other than: https://oauth2:[oauth-key]@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git

Can you please help me for the future?

Best regards, Daniel


Arkadiusz Idzikowski staff answered 5 years ago

Hello,

You need to add hash with version number at the end of the npm install command:

npm install git+https://oauth2:<your-auth-token>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#754

dimitribocquet pro commented 5 years ago

Hello,

I tried this one, but I got :

Command failed: git checkout 754error: pathspec '754' did not match any file(s) known to git

EDIT: It works with git+https://oauth2:@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#7.5.4


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 8.0.0
  • Device: Windows PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No