Comments (3)
which version have you used?
from go-replace.
# go-replace --version
go-replace version 1.1.2
Copyright (C) 2017 webdevops.io
And now with the actual command:
+ go-replace -s '<MYSQL_ROOT_PASSWORD>' -r '' --path=/opt/docker/etc/mysql/ '--path-pattern=*.cnf' --ignore-empty
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x5d2068]
goroutine 1 [running]:
main.searchFilesInPath.func1(0x7ffe642ab770, 0x16, 0x0, 0x0, 0x73cb20, 0xc42006b4a0, 0x20, 0x618f40)
/Users/mblaschke/Projects/go-replace/filehandling.go:56 +0x38
path/filepath.Walk(0x7ffe642ab770, 0x16, 0xc42000af40, 0x10, 0x610960)
/usr/local/Cellar/go/1.8.1/libexec/src/path/filepath/path.go:396 +0x8f
main.searchFilesInPath(0x7ffe642ab770, 0x16, 0xc4200139c0)
/Users/mblaschke/Projects/go-replace/filehandling.go:84 +0xb0
main.buildFileitems(0xc4200e3730, 0x0, 0x7, 0x7, 0x0, 0x0)
/Users/mblaschke/Projects/go-replace/main.go:463 +0x45e
main.main()
/Users/mblaschke/Projects/go-replace/main.go:482 +0x10a
+ go-replace -s '<MYSQL_DATABASE>' -r b2b-live --path=/opt/docker/etc/mysql/ '--path-pattern=*.cnf' --ignore-empty
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x5d2068]
goroutine 1 [running]:
main.searchFilesInPath.func1(0x7fffaec77770, 0x16, 0x0, 0x0, 0x73cb20, 0xc42006f530, 0x20, 0x618f40)
/Users/mblaschke/Projects/go-replace/filehandling.go:56 +0x38
path/filepath.Walk(0x7fffaec77770, 0x16, 0xc42007cda0, 0x10, 0x610960)
/usr/local/Cellar/go/1.8.1/libexec/src/path/filepath/path.go:396 +0x8f
main.searchFilesInPath(0x7fffaec77770, 0x16, 0xc42006b9f0)
/Users/mblaschke/Projects/go-replace/filehandling.go:84 +0xb0
main.buildFileitems(0xc4200f7500, 0x0, 0x7, 0x7, 0x0, 0x0)
/Users/mblaschke/Projects/go-replace/main.go:463 +0x45e
main.main()
/Users/mblaschke/Projects/go-replace/main.go:482 +0x10a
from go-replace.
can you try 22.10.0
?
from go-replace.
Related Issues (14)
- Add tests
- Support for named capture groups?
- Cannot use path pattern ignoring nested directories HOT 1
- CVE-2022-29526 - golang.org/x/sys HOT 3
- CVE-2023-24538/CVE-2023-24540 - stdlib HOT 1
- Add gpg signing
- Add path searching
- Add --lineinfile option
- Multiple --search and --replace
- Add --mode instead of --replace and --lineinfile
- Refactoring codebase
- Improve --lineinfile-after and --lineinfile-before
- Build is failing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-replace.