summaryrefslogtreecommitdiff
path: root/tests/integration/project/elements/symlinks/dangling-symlink.bst
blob: 879702d30f91e832ecce78e287fa114c79de5965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
kind: manual

depends:
  - base.bst

config:
  install-commands:
    # The installed file `/opt/orgname` will be a symlink to a directory that
    # doesn't exist (`/usr/orgs/orgname`). BuildStream should store this as a
    # relative symlink; among other reasons, if we ever stage an absolute
    # symlinks then we risk subsequent operations trying to write outside the
    # sandbox to paths on the host.
    - mkdir -p "%{install-root}"/opt/
    - ln -s /usr/orgs/orgname "%{install-root}"/opt/orgname