sui
sui copied to clipboard
[package-alt] consolidate environment determination on the sui side
Description
We now use the same code everywhere to determine the environment to use for package loading/building:
- check for an explicit environment name
- try the CLI's active environment name
- get the chain ID from the cache or the network or the manifest file (using the active CLI env name)
- try to find a matching environment
This should apply everywhere we invoke the package system on the sui side.
Test plan
How did you test the new or updated feature?
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] gRPC:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [ ] CLI:
- [ ] Rust SDK:
- [ ] Indexing Framework:
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| sui-docs | Preview | Comment | Dec 6, 2025 1:57pm |