Skip to content

Commit a02fef1

Browse files
authored
Added information for new --with-unpublished-dependencies flag (MystenLabs#7635)
1 parent ae866f1 commit a02fef1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/src/build/cli-client.md

+2
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@ The `--verify-dependencies` flag can fail the publish for other reasons, as well
582582
* The address supplied for the dependency points to an object instead of a package.
583583
* The CLI fails to connect to the node to fetch the package.
584584
585+
**Note:** If your package includes unpublished depenedencies, you can add the `--with-unpublished-dependencies` flag to the `sui client publish` command to include modules from those packages in the published build.
586+
585587
If successful, your response resembles the following:
586588
587589
```shell

doc/src/build/json-rpc.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ sure the package is valid. If some modules have [initializers](move/debug-publis
165165
To publish a Move module, you also need to include `{{vector_of_compiled_modules}}`. To generate the value of this field, use the `sui move` command. The `sui move` command supports printing the bytecode as base64:
166166

167167
```
168-
sui move <move-module-path> build --dump-bytecode-as-base64
168+
sui move <move-module-path> build --dump-bytecode-as-base64
169169
```
170170

171171
Assuming that the location of the package's sources is in the `PATH_TO_PACKAGE` environment variable an example command resembles the following:
@@ -181,3 +181,5 @@ Copy the output base64 representation of the compiled Move module into the
181181
REST publish endpoint.
182182

183183
The command generates a package object that represents the published Move code. You can use the package ID as an argument for subsequent Move calls to functions defined in this package.
184+
185+
**Note:** If your package has dependencies that are unpublished, include the `--with-unpublished-dependencies` flag to have the modules in those packages added to the bytecode.

0 commit comments

Comments
 (0)