Skip to content

Conversation

@joncinque
Copy link
Contributor

Problem

The Makefile model works, but this repo is still using the package.json scripts.

Summary of changes

Similar to most other repos:

  • remove old scripts / workflows / setup action / package.json
  • update tracing-subscriber for audit failure
  • add Makefile

#### Problem

The Makefile model works, but this repo is still using the package.json
scripts.

#### Summary of changes

Similar to most other repos:

* remove old scripts / workflows / setup action / package.json
* update tracing-subscriber for audit failure
* add Makefile
@joncinque joncinque marked this pull request as ready for review September 29, 2025 16:54
Makefile Outdated
@@ -0,0 +1,118 @@
RUST_TOOLCHAIN_NIGHTLY = nightly-2025-02-16
SOLANA_CLI_VERSION = 3.0.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This program's deps didn't get bumped yet.

Suggested change
SOLANA_CLI_VERSION = 3.0.0
SOLANA_CLI_VERSION = 2.3.4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these configs can also come out of the manifest's [workspace.metadata.cli] section now, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most cases yes, but we do use the format toolchain in codama client generation, so we'll need some other way to extract them later

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codama has a toolchain arg for its Rust renderer. You can probably hack it into the JS script to read from the Makefile. Maybe outside the scope of this PR though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that would be the approach most likely

Comment on lines -1 to -3
// Mark this test as BPF-only due to current `ProgramTest` limitations when
// CPIing into the system program
#![cfg(feature = "test-sbf")]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea what this comment might have been alluding to? Looks really old.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh yeah there was an issue in program-test way back when where you couldn't reallocate accounts in CPI from native mode because we didn't serialize the accounts in the way expected by on-chain programs. I couldn't find the PR, but I very clearly remember fixing it

@joncinque joncinque merged commit 2f7573e into solana-program:main Sep 30, 2025
27 of 28 checks passed
@joncinque joncinque deleted the makefile branch September 30, 2025 16:29
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