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

os.Mkdir called on Datadir default regardless of datadir config file setting. #105

Closed
nejucomo opened this issue Jul 28, 2014 · 2 comments
Closed

Comments

@nejucomo
Copy link

I found that mkdir was being called on ~/.ethereum even when I specified a nondefault config file -conf=/some/other/path.ini and that config file has datadir = /some/other/datadir.

Looking at the code I see that utils.InitConfig calls utils.InitDataDir, in cmd.go line 106, and this seems like a bug because this will contain the default value.

Later main calls utils.InitDataDir directly, in ethereum.main.go line 34, with the correct value from the config file.

I intend to write a unittest to capture this bug, but I'm new to go and haven't figured out the best way to mock out os.Mkdir or to create a temporary file system directory for non-mock testing.

@tgerring
Copy link
Contributor

This may be fixed by #368

@zelig zelig assigned zelig and unassigned zelig Apr 14, 2015
@zelig
Copy link
Contributor

zelig commented Apr 14, 2015

outdated. new cli works different. see #567 #639

@zelig zelig closed this as completed Apr 14, 2015
orenyodfat pushed a commit to orenyodfat/go-ethereum that referenced this issue Jul 3, 2017
…ework-lock-fixes

Prevent various deadlocks
AusIV pushed a commit to NoteGio/go-ethereum that referenced this issue Feb 20, 2020
AusIV pushed a commit to NoteGio/go-ethereum that referenced this issue Feb 24, 2020
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
Add Google cloud tool and kubectl to Docker image
joshuacolvin0 pushed a commit to joshuacolvin0/go-ethereum that referenced this issue Jan 4, 2023
…-transfers

Native and Js tracing impls for `CaptureArbitrumTransfer`
weiihann pushed a commit to weiihann/go-ethereum that referenced this issue Feb 23, 2023
* fix bug and upgrade trace code

* minor

* refactor (ethereum#105)

* move

* add comments

* fix typo

* update comments

* rename extraData()

* update comments

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
marioevz pushed a commit to marioevz/go-ethereum that referenced this issue Mar 21, 2023
protolambda added a commit to protolambda/go-ethereum that referenced this issue Oct 11, 2023
s1na pushed a commit to s1na/go-ethereum that referenced this issue Dec 2, 2024
buzzuporg pushed a commit to buzzup-hub/go-ethereum that referenced this issue Jan 7, 2025
Add a dummy BlobTxType=0x3 implementation until go-ethereum rebased
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

No branches or pull requests

3 participants