habitat-sh / habitat

Modern applications with built-in automation
https://www.habitat.sh
Apache License 2.0
2.61k stars 316 forks source link

Stops setting permissions in ensure_path_permissions when we reach pkgs directory #9449

Closed jasonheath closed 3 weeks ago

jasonheath commented 3 weeks ago

Stops setting permissions in ensure_path_permissions when we reach pkgs directory

An interim version of the code had some print stmts that show the path and the ancestors it walked up. This show one of those runs where it stoped walking up the path hierarchy when it hit pkgs.

PATH: "/tmp/.tmpJ2NRUr/rootfs/hab/pkgs/core/linux-headers/4.20.17"
 ANC:"/tmp/.tmpJ2NRUr/rootfs/hab/pkgs/core/linux-headers/4.20.17"
 ANC:"/tmp/.tmpJ2NRUr/rootfs/hab/pkgs/core/linux-headers"
 ANC:"/tmp/.tmpJ2NRUr/rootfs/hab/pkgs/core"
 ANC:"/tmp/.tmpJ2NRUr/rootfs/hab/pkgs"
netlify[bot] commented 3 weeks ago

Deploy Preview for chef-habitat processing.

Name Link
Latest commit ff5f807b98b920011181220dd02ad303a1d0f1d1
Latest deploy log https://app.netlify.com/sites/chef-habitat/deploys/6728df804c713e00081b1a75
jasonheath commented 3 weeks ago

Capturing some debug prints in case I wish I had them later.

☛ Verifying core/hab/1.6.1041/20240411141804
path: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core/hab/1.6.1041/20240411141804"
base: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core/hab/1.6.1041"
FS_ROOT_PATH: "/"
PKG_PATH: "hab/pkgs"
PATH: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core/hab/1.6.1041"
 ANC: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core/hab/1.6.1041"
 ANC: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core/hab"
 ANC: "/tmp/.tmphCoP04/rootfs/hab/pkgs/core"
 ANC: "/tmp/.tmphCoP04/rootfs/hab/pkgs"