canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
48 stars 23 forks source link

`metadata.yaml` is not synced #108

Closed Abuelodelanada closed 9 months ago

Abuelodelanada commented 9 months ago

Is jhack utils sync only syncing *.py files?

I've modified metadata.yaml but it is not synced:

$ jhack utils sync indico/0                                                                                                          
watching: 
    /home/ubuntu/repos/indico-operator/src/charm.py
    /home/ubuntu/repos/indico-operator/src/state.py
    /home/ubuntu/repos/indico-operator/lib/charms/grafana_k8s/v0/grafana_dashboard.py
    /home/ubuntu/repos/indico-operator/lib/charms/loki_k8s/v0/loki_push_api.py
    /home/ubuntu/repos/indico-operator/lib/charms/nginx_ingress_integrator/v0/nginx_route.py
    /home/ubuntu/repos/indico-operator/lib/charms/observability_libs/v0/juju_topology.py
    /home/ubuntu/repos/indico-operator/lib/charms/prometheus_k8s/v0/prometheus_scrape.py
    /home/ubuntu/repos/indico-operator/lib/charms/redis_k8s/v0/redis.py
Ctrl+C to interrupt

But the doc says it sync a folder:

$ jhack utils sync --help

 Usage: jhack utils sync [OPTIONS] TARGET                                                                                                    

 Syncs a local folder to a remote juju unit via juju scp.    

Version installed: 0.3.19.1.1

PietroPasotti commented 9 months ago

indeed, it defaults to only .py files. You should be able to override it with -i

image