etcd tree drives snapcraft dump plugin insane

Bug #1615242 reported by Mark Shuttleworth
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
High
Unassigned

Bug Description

Managed to get an infinite loop of copying under way with this snapcraft.yaml:

name: etcd
version: 3.0.6+master # this branch tracks upstream master
summary: Distributed key-value store # 79 char long summary
description: |
  Etcd provides a key-value store and is implemented for high availability,
  using the RAFT algorithm to deal with failover within the etcd cluster.
  Popular in the Docker community as a shared store of small but important
  pieces of common data in an application.
confinement: devmode # use "strict" to enforce system access only via declared interfaces

apps:
  etcd:
    command: bin/etcd
  etcdctl:
    command: bin/etcdctl

parts:
  etcd:
    plugin: dump
    source: .
    stage:
      - bin/*

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

To reproduce:
$ cd /tmp
$ git clone https://github.com/coreos/etcd
$ cd etcd
# write the snapcraft.yaml from above.
$ snapcraft

Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Leo Arias (elopio) wrote :

The problem is that cmd/vendor/github.com/coreos/etcd is a link to ../../../../

The same problem with: cmd/etcd -> ../

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

Btw, we started playing with etcd in Vancouver. With the recent snapcraft release, we could get this working: https://github.com/ubuntu/snappy-playpen/pull/223

Changed in snapcraft:
status: Confirmed → Triaged
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1615242] Re: etcd tree drives snapcraft dump plugin insane

Thanks Leo. I have a snapcraft.yaml that works slightly differently
using a new buildcmd plugin I am working on for snapcraft. Will share
shortly.

Leo Arias (elopio)
tags: added: sources
tags: added: craft-6
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.