skonfig / base

explorer and types for general use
GNU General Public License v3.0
4 stars 4 forks source link

__file: upload_destination is broken #93

Closed 4nd3r closed 1 year ago

4nd3r commented 1 year ago

something broke in #90:

$ echo __file /tmp/foo | skonfig -i - localhost               
INFO: localhost: Starting configuration run
INFO: localhost: Processing __file/tmp/foo                                                               
ERROR: localhost: /bin/sh -e /tmp/tmpci9x5nqb/421aa90e079fa326b6494f812ad13e79/data/object/__file/tmp/foo/.cdist-gusbpna_/code-local: 1

Error processing object '__file/tmp/foo'                                                                 
========================================           
name: __file/tmp/foo                               
path: /tmp/tmpci9x5nqb/421aa90e079fa326b6494f812ad13e79/data/object/__file/tmp/foo/.cdist-gusbpna_
source: /tmp/cdist.stdin.c7kj2l3t
type: /home/ander/Code/skonfig/base/type/__file                                                          

code-local:stderr                                                                                                                                                                                                  
-----------------
scp: /__cdist/tmp/foo.skonfig.MmqOmI: No such file or directory
sideeffect42 commented 1 year ago

Ah shoot. I noticed it too and thought it was the "__file being broken on macOS" bug returning when I had a mess with my local changes and stashes.

Will have a look at it, thank you @4nd3r.