Inlined dependencies in mip packages #10353
Replies: 1 comment 1 reply
-
|
@aivarannamaa Sorry about the delay responding... Happy to add the dependencies to the package index. I hadn't imagined any use for it there -- either you want the package or not, but maybe it's useful to know. Would be curious if you have any thoughts.
When you fetch a package metadata json (optionally at a specific version), then it's just telling you what you need.
Sure, but then the client is just going to have to implement the recursive dependency walk. Might as well have the metadata just tell the client exactly what it's going to need up-front.
Yes. When a package version is created (i.e. manifest.py is updated with a new version string), then the dependencies are "frozen" at their current version. In other words, once a versioned package json is created, it's never updated. So if The underlying expectation here is that at a given point in time, every library in the repo is compatible with the current version of every other library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to https://github.com/micropython/micropython-lib/blob/master/python-stdlib/html/manifest.py the package
htmlhas dependencystring. Yet this relationship is reflected neither in the package index (https://micropython.org/pi/v2/index.json) nor in thehtmlpackage metadata (https://micropython.org/pi/v2/package/6/html/3.3.3-2.json). Instead, the metadata indicates thatstring.mpyis part of thehtmlpackage. The actual file seems to be shared with thestringpackage (https://micropython.org/pi/v2/package/6/string/0.1.1.json)What is the reason of this inlining? Isn't the package metadata file capable of expressing the dependencies? Does the
htmlpackage get automatically updated when thestringpackage gets new version or would it need manual approval?Beta Was this translation helpful? Give feedback.
All reactions