Merge lp:~stephen-stewart/snapweb/fix-snap-routing into lp:~snappy-dev/snapweb/trunk

Proposed by Stephen Stewart
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 132
Merged at revision: 134
Proposed branch: lp:~stephen-stewart/snapweb/fix-snap-routing
Merge into: lp:~snappy-dev/snapweb/trunk
Diff against target: 24 lines (+2/-2)
2 files modified
www/src/js/controllers/snaps.js (+1/-1)
www/src/js/routers/router.js (+1/-1)
To merge this branch: bzr merge lp:~stephen-stewart/snapweb/fix-snap-routing
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
Review via email: mp+258554@code.launchpad.net

Commit message

fix snap routing/controller

To post a comment you must log in.
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve
Revision history for this message
Snappy Tarmac (snappydevtarmac) wrote :

The attempt to merge lp:~stephen-stewart/webdm/fix-snap-routing into lp:webdm failed. Below is the output from the failed tests.

Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.com/blakesmith/ar failed; trying to fetch newer version
update github.com/cheggaaa/pb failed; trying to fetch newer version
github.com/blakesmith/ar now at c9a977dd0cc1392b023382c7bfa5a22af8d3b730
update github.com/gorilla/context failed; trying to fetch newer version
github.com/cheggaaa/pb now at e8c7cc515bfde3e267957a3b110080ceed51354e
update gopkg.in/check.v1 failed; trying to fetch newer version
github.com/gorilla/context now at 50c25fb3b2b3b3cc724e9b6ac75fb44b3bccd0da
update gopkg.in/yaml.v2 failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5bcc6bd5a76287eb75ea96c673
update launchpad.net/snappy failed; trying to fetch newer version
gopkg.in/yaml.v2 now at 49c95bdc21843256fb6c4e0d370a05f24a0bf213
update github.com/gorilla/mux failed; trying to fetch newer version
launchpad.net/snappy now at snappy_tarmac-20150507103214-pgd90adryua6v6wi
update github.com/juju/loggo failed; trying to fetch newer version
github.com/gorilla/mux now at e444e69cbd2e2e3e0749a2f3c717cec491552bbf
update github.com/mvo5/goconfigparser failed; trying to fetch newer version
github.com/juju/loggo now at 4c7cbce140ca070eeb59a28f4bf9507e511711f9
github.com/mvo5/goconfigparser now at 26426272dda20cc76aa1fa44286dc743d2972fe8
Building

# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT

# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/src/launchpad.net/webdm
cp -a . $GOPATH/src/launchpad.net/webdm/
cd $GOPATH/src/launchpad.net/webdm

./run-checks
gopkg.in/yaml.v2
launchpad.net/webdm/oem
github.com/gorilla/context
github.com/gorilla/mux
github.com/mvo5/goconfigparser
github.com/blakesmith/ar
launchpad.net/snappy/helpers
launchpad.net/snappy/clickdeb
launchpad.net/snappy/coreconfig
github.com/juju/loggo
launchpad.net/snappy/logger
launchpad.net/snappy/partition
launchpad.net/snappy/policy
github.com/cheggaaa/pb
launchpad.net/snappy/progress
launchpad.net/snappy/release
launchpad.net/snappy/systemd
launchpad.net/snappy/snappy
launchpad.net/webdm/webprogress
launchpad.net/webdm/snappy
launchpad.net/webdm/cmd/snappyd
# launchpad.net/webdm/cmd/snappyd
/usr/lib/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory

Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve
Revision history for this message
Snappy Tarmac (snappydevtarmac) wrote :

The attempt to merge lp:~stephen-stewart/webdm/fix-snap-routing into lp:webdm failed. Below is the output from the failed tests.

# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
mktemp: failed to create directory via template ‘~/tmp/tmp.XXXXXXXXXX’: No such file or directory
trap 'rm -rf "$GOPATH"' EXIT

# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/src/launchpad.net/webdm
mkdir: cannot create directory ‘/src’: Permission denied

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'www/src/js/controllers/snaps.js'
2--- www/src/js/controllers/snaps.js 2015-05-06 21:41:39 +0000
3+++ www/src/js/controllers/snaps.js 2015-05-07 20:34:31 +0000
4@@ -8,7 +8,7 @@
5 var rootChannel = Radio.channel('root');
6
7 module.exports = {
8- snap: function(name, section) {
9+ snap: function(id, section) {
10 var snap = new Snap({id: id});
11
12 snap.fetch({
13
14=== modified file 'www/src/js/routers/router.js'
15--- www/src/js/routers/router.js 2015-04-28 07:49:54 +0000
16+++ www/src/js/routers/router.js 2015-05-07 20:34:31 +0000
17@@ -35,7 +35,7 @@
18 snap: new Marionette.AppRouter({
19 controller: snapController,
20 appRoutes: {
21- 'snap/:name/(:section)': 'snap',
22+ 'snap/:id/(:section)': 'snap',
23 }
24 }),
25

Subscribers

People subscribed via source and target branches