Skip to content

feat(stellar-scaffold-cli): don't write empty meta - #640

Merged
chadoh merged 1 commit into
mainfrom
feat/dont-embed-blank-metadata
Oct 22, 2026
Merged

chadoh merged 1 commit into
mainfrom
feat/dont-embed-blank-metadata

Conversation

@chadoh

@chadoh chadoh commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

If homepage or repository are blank in Cargo.toml, do not write
their corresponding meta fields in the Wasm

If `homepage` or `repository` are blank in Cargo.toml, do not write
their corresponding `meta` fields in the Wasm
@pselle

pselle commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Why is this bad though? if the user explicitly set a blank string, is there a negative outcome to this? The Some() covers it existing. Since the PR isn't linked to an issue, just curious

chadoh added a commit to stellar-scaffold/ui that referenced this pull request Oct 22, 2026
The example contracts inherited `authors` and `repository` from the
workspace, set to The Aha Company and the Scaffold CLI repo. Their
`cargo_inherit` metadata writes those into the Wasm, so contracts built
or published from a new project claimed to come from us.

Projects now start with these values and also `homepage` set to blank
values, and all member contracts set to inherit them, with a comment in
the root Cargo.toml telling people to set the values.

Corresponding change stellar-scaffold/cli#640 ensures blank
`home_domain` and `source_repo` values don't end up in the Wasm.
@chadoh

chadoh commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@pselle see newimproved stellar-scaffold/ui#283 (relevant commit now shown here in this PR's history, too): I wanted to include the *.workspace = true lines in contract Cargo.toml files so people would only need to set the values in the root, but found it a little silly that blank values would end up in the Wasm metadata.

Def not a big deal, but it's a quick fix so we may as well.

@chadoh

chadoh commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

mettling! bc release builds take forever and they just started after #632 merge so we may as well have this lil cherry on top before they spend an hour building latest CLI artifacts

@chadoh
chadoh merged commit 1aea970 into main Oct 22, 2026
9 checks passed
@chadoh
chadoh deleted the feat/dont-embed-blank-metadata branch October 22, 2026 17:29
chadoh added a commit to stellar-scaffold/ui that referenced this pull request Oct 22, 2026
The example contracts inherited `authors` and `repository` from the
workspace, set to The Aha Company and the Scaffold CLI repo. Their
`cargo_inherit` metadata writes those into the Wasm, so contracts built
or published from a new project claimed to come from us.

Projects now start with these values and also `homepage` set to blank
values, and all member contracts set to inherit them, with a comment in
the root Cargo.toml telling people to set the values.

Corresponding change stellar-scaffold/cli#640 ensures blank
`home_domain` and `source_repo` values don't end up in the Wasm.
chadoh added a commit to stellar-scaffold/ui that referenced this pull request Oct 23, 2026
The example contracts inherited `authors` and `repository` from the
workspace, set to The Aha Company and the Scaffold CLI repo. Their
`cargo_inherit` metadata writes those into the Wasm, so contracts built
or published from a new project claimed to come from us.

Projects now start with these values and also `homepage` set to blank
values, and all member contracts set to inherit them, with a comment in
the root Cargo.toml telling people to set the values.

Corresponding change stellar-scaffold/cli#640 ensures blank
`home_domain` and `source_repo` values don't end up in the Wasm.

Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
chadoh pushed a commit that referenced this pull request Oct 23, 2026
## 🤖 New release

* `stellar-scaffold-cli`: 0.0.31 -> 0.0.32 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.0.32](stellar-scaffold-cli-v0.0.31...stellar-scaffold-cli-v0.0.32)
- 2026-10-23

### Added

- *(stellar-scaffold-cli)* don't write empty meta
([#640](#640))

### Fixed

- scaffold.yml v2 fast-follows for the 1.0 preview
([#632](#632))
- *(cli)* use the stellar-scaffold name in help and version output
([#636](#636))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: aha-release-plz[bot] <211513279+aha-release-plz[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants