-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Issue with --dump-bytecode-as-base64 Option Requiring Config File #20458
Comments
Hi @daoauth We're aware of this little inconvenience with the I will try to see if I can fix this for a next release of Sui CLI, to have a flag that we can pass an unknown chain and just allow us to build the code and get the json from this |
Could you kindly consider this issue as well? If possible, I would greatly appreciate your thoughts on it. |
Sorry but I don't think such a feature is needed. |
I've already been saving the JSON as you suggested, and it's not a major issue. However, when I use a pipeline to output, the color of the compile result prompt disappears, which is a bit unfortunate. In my thought, this happens because ANSI color codes are disabled when output is redirected to a file or pipeline. I understand this isn't an urgent or essential matter, but I wanted to mention it to see if there's any other solution or if a feature could be added to address this. |
…uild` (#20475) ## Description Allow `sui move build --dump-bytecode-as-base64` to not need to read the chain from `client.yaml` by adding a flag `--ignore-chain`. This allows building to proceed without a network connection or active environment, but it will not be able to automatically determine the addresses of its dependencies. NB: `--ignore-chain` depends on `dump-bytecode-as-base64`, so it cannot be used on its own. Should close #20458. ## Test plan Local test. ``` ➜ first_package git:(main) ✗ sui move build --dump-bytecode-as-base64 --ignore-chain INCLUDING DEPENDENCY Sui INCLUDING DEPENDENCY MoveStdlib BUILDING my_first_package JSON_OUTPUT_HERE - replaced for brevity. ➜ first_package git:(main) ✗ sui move build --dump-bytecode-as-base64 Config file ["/Users/user/.sui/sui_config/client.yaml"] doesn't exist, do you want to connect to a Sui Full node server [y/N]? ``` --- ## 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): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [x] CLI: Added the flag `--ignore-chain` that works together with `sui move build --dump-bytecode-as-base64` to bypass the need for a `client.yaml` file. This allows building to proceed without a network connection or active environment, but it will not be able to automatically determine the addresses of its dependencies. NB: `--ignore-chain` depends on `--dump-bytecode-as-base64`, so it cannot be used on its own. - [ ] Rust SDK: - [ ] REST API: --------- Co-authored-by: Ashok Menon <[email protected]>
Steps to Reproduce Issue
Expected Result
The
--dump-bytecode-as-base64
option should function as it did in previous versions of sui-cli, where it could generate a dump file without requiring a configuration file.Actual Result
The command fails to execute and prompts the user for a configuration file:
This introduces a new and unexpected dependency on a config file, which complicates workflows that previously operated without it.
System Information
The text was updated successfully, but these errors were encountered: