etcd tree drives snapcraft dump plugin insane

Bug #1615242 reported by Mark Shuttleworth on 2016-08-20
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
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/*

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
Leo Arias (elopio) wrote :

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

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

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

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) on 2016-09-02
tags: added: sources
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers