changed issueshttps://git.autistici.org/ale/changed/-/issues2018-10-02T16:27:28Zhttps://git.autistici.org/ale/changed/-/issues/3-dry-run2018-10-02T16:27:28Zboyska-dry-runI'm not completely sure that it is **needed**, but it sounds like a feature that "should be in". `-dry-run` should check without updating the db.I'm not completely sure that it is **needed**, but it sounds like a feature that "should be in". `-dry-run` should check without updating the db.https://git.autistici.org/ale/changed/-/issues/2panic if path does not exist2018-10-02T16:27:27Zboyskapanic if path does not exist```
% ./changed dontexist
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x401f98]
goroutine 16 [running]:
runtime.panic(0x507e40, 0x5ce9d3)
/usr/lib/go/src/pkg/runtime/...```
% ./changed dontexist
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x401f98]
goroutine 16 [running]:
runtime.panic(0x507e40, 0x5ce9d3)
/usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
main.funcĀ·001(0xc208046960, 0x19, 0x0, 0x0, 0x7f7cc98d6550, 0xc208024a80, 0x0, 0x0)
/home/username/sw/changed/changed.go:53 +0x68
path/filepath.Walk(0xc208046960, 0x19, 0x7f7cc9737d68, 0x0, 0x0)
/usr/lib/go/src/pkg/path/filepath/path.go:388 +0xa9
main.(*Walker).Walk(0x7f7cc9737de8, 0xc208046960, 0x19, 0x7f7cc9737dd8, 0x0, 0x0)
/home/username/sw/changed/changed.go:74 +0x76
main.buildLocalFileSet(0xc208046960, 0x19, 0xc20800f140, 0x4, 0x4, 0x0, 0x0, 0x0, 0xc208046920)
/home/username/sw/changed/changed.go:120 +0xe2
main.HasChanged(0xc208046960, 0x19, 0xc20800f140, 0x4, 0x4, 0x0, 0x0, 0x0, 0x543ab0)
/home/username/sw/changed/changed.go:162 +0xa3
main.main()
/home/username/sw/changed/changed.go:180 +0x24e
goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
/usr/lib/go/src/pkg/runtime/mheap.c:507
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
goroutine 18 [runnable]:
bgsweep()
/usr/lib/go/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
goroutine 19 [runnable]:
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1445
```alealehttps://git.autistici.org/ale/changed/-/issues/1Multiple paths2018-10-02T16:27:27ZboyskaMultiple pathsI think is reasonable to give multiple arguments to `changed`. For example in
```sh
changed /etc/default/apache /etc/apache2/ && sudo service apache2 restart
```
This will also allow "custom selectors" to be implemented like
```...I think is reasonable to give multiple arguments to `changed`. For example in
```sh
changed /etc/default/apache /etc/apache2/ && sudo service apache2 restart
```
This will also allow "custom selectors" to be implemented like
```sh
find /path -anyoption | xargs changed
```aleale