multiple parts with same git repo makes build checkout out redundant repos

Bug #1608932 reported by Adam Stokes
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Low
Unassigned

Bug Description

snapcraft.yaml:

name: conjure-up
version: 2.0.0.7
summary: Package runtime for conjure-up spells
description: >
   This package provides conjure-up, an interface to installing spells that
   provide the user with an end to end walkthrough experience for installing and
   using big software.
confinement: strict

apps:
  conjure-up:
    command: conjure-up
  python3:
    command: python3
  shell:
    command: bash

parts:
  conjure:
    plugin: python3
    source: https://github.com/ubuntu/conjure-up.git
    source-type: git
    requirements: parts/conjure/src/requirements.txt
    stage-packages:
      - juju
      - bsdtar
      - coreutils
      - lxd-client
      - lxd
      - jq
      - charm-tools
      - charm
      - python3-glanceclient
      - python3-neutronclient
      - python3-openstackclient
  conjure-configs:
    plugin: copy
    source: https://github.com/ubuntu/conjure-up.git
    source-type: git
    files:
      etc/conjure-up.conf: etc/conjure-up.conf
      share/keyword-definitions.yaml: usr/share/conjure-up/keyword-definitions.yaml
      share/hooklib: usr/share/conjure-up/hooklib

Running snapcraft build will result in each part having their own copy of the git tree even though they are identical.

This is on snapcraft 2.13.1

tags: added: conjure
Revision history for this message
Leo Arias (elopio) wrote :

We want to keep the parts independent. I'm not sure if we win a lot by sharing the source, and it would need some work to add a new directory that can be shared with a link or something. I'll mark it as confirmed, but low priority. And I'm more inclined to won't fix, but let's see if more people want this.

tags: added: sources
Changed in snapcraft:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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