Skip to content
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

Chore/standardized sample dir #5594

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Conversation

wileyj
Copy link
Contributor

@wileyj wileyj commented Dec 18, 2024

ref #5575

Creates a new root directoy, ./samples, and:

  • moves the existing sample configs from ./testnet/stacks-node/conf to ./sample/conf
  • moves ./sample-contracts to ./sample/contracts

I've updated all references to the old locations, and re-ran unit-tests and simple_publish and simple_token_transfer.
Note: i've changed the current symlink so the source is in ./sample/conf, and the target is now ./stackslib/conf (basically, the opposite of what is currently linked) - unit test pass after this change.

@wileyj wileyj requested review from a team as code owners December 18, 2024 22:15
@wileyj
Copy link
Contributor Author

wileyj commented Dec 19, 2024 via email

jbencin
jbencin previously approved these changes Dec 19, 2024
Copy link
Contributor

@jbencin jbencin left a comment

Choose a reason for hiding this comment

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

Looks good, this directory layout makes a lot more sense. Just two comments:

  • Cargo doesn't provide one, but I think we should provide a CARGO_WORKSPACE_ROOT variable as I mentioned in a comment above, instead of using relative paths with dots and slashes
  • IMO since the config files are required for stackslib unit tests, they should live in stackslib and sample/conf should be a symlink. I don't really feel strongly about this, so I'll approve anyway

jcnelson
jcnelson previously approved these changes Dec 19, 2024
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

This is great 🚀

LGTM

jbencin added a commit to jbencin/stacks-core that referenced this pull request Dec 19, 2024
Copy link
Contributor

@jbencin jbencin left a comment

Choose a reason for hiding this comment

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

LGTM! Further changes involving cargo_workspace() can be in a separate PR

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.

3 participants