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

updating packages created with old min sdk #169

Open
omarcostahamido opened this issue Jan 2, 2021 · 3 comments
Open

updating packages created with old min sdk #169

omarcostahamido opened this issue Jan 2, 2021 · 3 comments

Comments

@omarcostahamido
Copy link
Contributor

Following this guide:
https://github.com/omarcostahamido/min-devkit/blob/master/HowTo-UpdateTheAPI.md
What is the recommended way to update a package that was started with an older version of min sdk?

When following that guide, I get:
fatal: not a git repository (or any of the parent directories): .git
I was using min 0.4.9 and right now it is in 0.5.4

@robtherich
Copy link
Contributor

we would have to know your exact steps for setting up this project in order to offer much help. e.g. did you start by cloning the repository or via some other method?

if you want to update the min repo your project links to via git, then you must first clone the repo with git (rather than use the Package Manager or zip download).

@omarcostahamido
Copy link
Contributor Author

the old package in question was done with the min-sdk 0.4.9, the package manager version. No git involved at that time.

@robtherich
Copy link
Contributor

in order to update the min libs from a project created via the min-devkit Package Manager launcher patch, something like the following should do the trick:

  1. remove both source/min-api and source/min-lib folders
  2. from the command line, navigate to your project root folder and initialize it as a git project: git init
  3. commit your files: git commit -m"initial commit"
  4. add min-api as submodule: git submodule add https://github.com/Cycling74/min-api.git source/min-api
  5. add min-lib as submodule: git submodule add https://github.com/Cycling74/min-lib.git source/min-lib
  6. commit submodules git commit -m"Min-API and Min-Lib added as git submodules"

you have now converted your project to a git based project with min libs linked as submodules. you should regenerate your project files either via cmake on the command line, or by using the launcher patch interface.

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