Expose project directory path to the scriptlets

Bug #1824417 reported by 林博仁(Buo-ren, Lin)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Tony Simpson

Bug Description

For some use cases, it is convenient to know the exact path of the snapcraft project directory in a scriptlet, which is now in different paths depending on the build environment:

* host: ../../.. (for pull and build step); .. (for stage and prime step)
* managed-host: /root/project

Discussion: https://forum.snapcraft.io/t/get-project-path-for-overrides/10881

description: updated
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → 3.5
assignee: nobody → Tony Simpson (tonysimpson)
importance: Undecided → Medium
importance: Medium → Wishlist
status: New → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.