Skip to content

scripts: make config creation script independent of OS#538

Merged
manav2401 merged 1 commit into
developfrom
getconfig-script-fix
Oct 4, 2022
Merged

scripts: make config creation script independent of OS#538
manav2401 merged 1 commit into
developfrom
getconfig-script-fix

Conversation

@manav2401

@manav2401 manav2401 commented Oct 4, 2022

Copy link
Copy Markdown
Member

This PR makes some modifications in the getconfig script which is used to generate the toml config file according to the new-cli from an old (v0.2.x) start.sh to make it executable on Mac and Linux machines.

We've tried to make the solution simpler using some methods but that didn't work out. So, as of now, the current solution just includes if else statements at places to run commands depending on the current OS.

Reference Issue

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Base: 56.84% // Head: 56.84% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (29a585b) compared to base (2a677a5).
Patch coverage: 59.52% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop     #538    +/-   ##
=========================================
  Coverage    56.84%   56.84%            
=========================================
  Files          607      606     -1     
  Lines        69993    70121   +128     
=========================================
+ Hits         39786    39861    +75     
- Misses       26801    26834    +33     
- Partials      3406     3426    +20     
Impacted Files Coverage Δ
consensus/clique/clique.go 40.35% <ø> (ø)
consensus/ethash/consensus.go 40.21% <ø> (ø)
consensus/ethash/sealer.go 80.09% <0.00%> (ø)
core/blockchain.go 59.46% <ø> (-0.09%) ⬇️
core/state_transition.go 89.10% <ø> (ø)
core/types/transaction.go 61.94% <0.00%> (-0.77%) ⬇️
internal/cli/flagset/flagset.go 35.77% <0.00%> (-1.02%) ⬇️
internal/cli/server/server.go 30.89% <0.00%> (-0.36%) ⬇️
consensus/bor/bor.go 7.83% <1.96%> (-0.39%) ⬇️
miner/worker.go 74.20% <82.63%> (+3.25%) ⬆️
... and 24 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@manav2401 manav2401 merged commit 1022d30 into develop Oct 4, 2022
@manav2401 manav2401 deleted the getconfig-script-fix branch October 4, 2022 16:24
manav2401 added a commit that referenced this pull request Oct 4, 2022
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.

4 participants