-
Notifications
You must be signed in to change notification settings - Fork 843
refactor: directly embed files in graft
#4795
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
Conversation
| genesisPath := filepath.Join(testDir, "genesis.json") | ||
|
|
||
| var err error | ||
| repoRoot, err = e2e.GetRepoRootPath("tests/load") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with continuing to use GetRepoRootPath for now, but ideally we remove the need for it going forward (i.e. by checking for the run_simulator.sh script via a relative path and if missing require an absolute path to be provided by a flag).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do a follow up PR to accomplish this! and remove the function entirely so no one else can use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the PR #4813
Why this should be merged
Closes #4776 -- this is a pretty nice clean up IMO. Credit to Maru for raising the issue.
How this works
One thing to note that is that embed declaration only work for files at the same level directory. See golang/go#46056. So I created a single file to embed the shared genesis file and then imported it.
How this was tested
CI
Need to be documented in RELEASES.md?
No