aboutsummaryrefslogtreecommitdiffstats
path: root/common/path.go
Commit message (Collapse)AuthorAgeFilesLines
* all: fix go vet warningsFelix Lange2016-04-151-1/+1
|
* cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspectPéter Szilágyi2016-02-051-22/+0
|
* cmd, common, node, rpc: move IPC into the node itselfPéter Szilágyi2016-02-041-5/+4
|
* common: Fix HomeDir detectionLefteris Karapetsas2016-01-081-5/+6
| | | | | | | | | | | | | | | | | | | I am working on porting geth to [Ubuntu Core](https://developer.ubuntu.com/en/snappy/https://developer.ubuntu.com/en/snappy/). I am testing geth on a Raspberry PI and for Ubuntu Core the $HOME directory is unique for each application. See [here](https://developer.ubuntu.com/en/snappy/guides/filesystem-layout) for more information of their filesystem layout. For some reason in Go `usr.HomeDir` returns a different value than `$HOME` in Ubuntu Core. Adding this at the end of `HomeDir()` ```go fmt.Printf("at HomeDir, user.HomeDir = %s and $HOME is %s\n", usr.HomeDir, os.Getenv("HOME")) ``` gives the following output ``` at HomeDir, user.HomeDir = /home/ubuntu and $HOME is /home/ubuntu/apps/geth.sideload/IJcODREBYbHO ``` With this commit, I propose giving precedence to the `$HOME` environment variable as is also suggested by the [homedir](https://github.com/mitchellh/go-homedir/blob/master/homedir.go) project.
* rpc api: eth_getNatSpeczelig2015-10-271-38/+6
| | | | | | | | * xeth, rpc: implement eth_getNatSpec for tx confirmations * rename silly docserver -> httpclient * eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot * cmd: introduce separate CLI flag for DocRoot (defaults to homedir) * common/path: delete unused assetpath func, separate HomeDir func
* common: fix #1818, secondary datadir paths to fall back toPéter Szilágyi2015-10-011-6/+16
|
* common: remove windows path functionsFelix Lange2015-08-061-11/+0
| | | | They were unused and their tests failed on Windows.
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* fixed windows ipc path issueBas van Kervel2015-06-121-0/+3
|
* added API/IPC commandline flagsBas van Kervel2015-06-111-0/+4
|
* replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-11/+10
|
* Remove path separator literalsTaylor Gerring2015-04-291-6/+7
|
* common: remove WriteFile and ReadAllFile (use ioutil instead)zelig2015-03-271-30/+0
|
* Move MakeName to pathTaylor Gerring2015-03-221-0/+8
|
* Move OS-specific funcs to path.goTaylor Gerring2015-03-221-0/+60
|
* Moved ethutil => commonobscuren2015-03-161-0/+68