betrusted-io / xous-core

The Xous microkernel
Apache License 2.0
529 stars 85 forks source link

add xtask task to update submodules #7

Closed bunnie closed 3 years ago

bunnie commented 3 years ago

now that we have submodules enhance xtask to update the submodules

bunnie commented 3 years ago

actually, a better way may be to have the Cargo.toml refer directly to a git repository, from @xobs :

With the com_rs = { ... } declaration above, it will clone the git repository from that URL, but it will always build at the specified git revision. When you're happy with a change, you push your com_rs repo and then update the Cargo.toml file under services/com/. Push as much as you like, as long as you don't force-push and remove that git revision, older versions will continue to work.

development would happen with this procedure:

   1. Clone com_rs somewhere
   2. Modify Cargo.toml to point to your local com_rs using com_rs { path = ... }
   3. Make & test changes
   4. Push changes
   5. Update Cargo.toml to use the new git rev
xobs commented 3 years ago

The declaration above is:

com_rs = { git = "https://github.com/betrusted-io/com_rs", rev = "9a91a81f482ea8eba2f2de5d6c20b9bd399f39a9" }
bunnie commented 3 years ago

I think this is resolved. @xobs please re-open it if you think it needs more work.