snapcraft pull doesn't save the installed build dependencies

Bug #1688151 reported by Leo Arias
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Leo Arias

Bug Description

Snapcraft should save the name and versions of all the packages installed, so the package can be audited and recreated. Currently, it saves the stage package dependencies, but not the build package dependencies.

To reproduce:

Write a snapcraft.yaml with the following part:

    plugin: nil
    build-packages: [hello]
    stage-packages: [hello]

hello has one dependency on gcc-6-base.

Run snapcraft pull

Check the file parts/my-part/state/pull:

  build-packages: [hello=2.10-1]
  source-details: null
  stage-packages: [gcc-6-base=6.0.1-0ubuntu1, hello=2.10-1]
project_options: {deb_arch: amd64}
  plugin: nil
  source: .
  source-branch: ''
  source-commit: ''
  source-depth: 0
  source-subdir: ''
  source-tag: ''
  source-type: ''
  stage-packages: [hello]
schema_properties: []

Note that the gcc-6-base dependency was only added to the stage-packages.

Tags: reproducible
Changed in snapcraft:
status: In Progress → Fix Committed
milestone: none → 2.30
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.