← Back to issue list

Permissions owner and group not applied

View original Github issue

Metadata

Project
craft-parts
Number
#507
Type
issue
State
open
Author
sergiusens
Labels
Created
2023-07-26 12:08:30+00:00
Updated
2025-03-11 14:29:12+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description When used in Rockcraft, the directory in the shared yaml is still owned by root in the resulting image ### To Reproduce - install rockcraft - add the shared part as a part - run rockcraft ### part yaml ```shell zinc: plugin: go source: https://github.com/zincsearch/zincsearch source-type: git source-tag: v0.4.7 build-snaps: - go/latest/stable - node/18/stable build-environment: - CGO_ENABLED: 0 - GOOS: linux override-build: | COMMIT_HASH="$(git rev-parse HEAD)" BUILD_DATE="$(date -u '+%Y-%m-%d_%I:%M:%S%p-GMT')" # Build the web ui, which is embedded in the go binary later pushd web npm install npm run build popd go mod tidy go build \ -ldflags="-s -w -X github.com/zincsearch/zincsearch/pkg/meta.Version=${CRAFT_PROJECT_VERSION} \ -X github.com/zincsearch/zincsearch/pkg/meta.CommitHash=${COMMIT_HASH} \ -X github.com/zincsearch/zincsearch/pkg/meta.BuildDate=${BUILD_DATE}" \ -o zincsearch \ cmd/zincsearch/main.go stage-packages: - libc6_libs - ca-certificates_data override-stage: | # Create some directories mkdir -p "${CRAFT_PART_INSTALL}/bin" "${CRAFT_PART_INSTALL}/var/lib/zincsearch" # Install the zincsearch binary install -m 0755 "${CRAFT_PART_BUILD}/zincsearch" "${CRAFT_PART_INSTALL}/bin/zincsearch" # Run the default stage hook craftctl default permissions: - path: /var/lib/zincsearch owner: 584792 group: 584792 mode: "755" ``` ### Relevant log output ```shell n/a ```

Evaluation history

No evaluation history available.