Skip to content

Commit

Permalink
Go plugin creating invalid env
Browse files Browse the repository at this point in the history
  • Loading branch information
jocave committed Dec 9, 2015
1 parent b98a170 commit 62dc469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapcraft/plugins/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def env(self, root):
# usr/lib/go/bin on newer Ubuntus, usr/bin on trusty
env = [
'GOPATH={}/go'.format(root),
'CGO_LDFLAGS=$CGO_LDFLAGS"' + ' '.join([
'CGO_LDFLAGS="$CGO_LDFLAGS ' + ' '.join([
'-L{0}/lib',
'-L{0}/usr/lib',
'-L{0}/lib/{1}',
Expand Down
2 changes: 1 addition & 1 deletion snapcraft/tests/test_plugin_go.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Options:
plugin = go.GoPlugin('test', Options())
self.assertEqual(plugin.env('myroot'), [
'GOPATH=myroot/go',
'CGO_LDFLAGS=$CGO_LDFLAGS"-Lmyroot/lib -Lmyroot/usr/lib '
'CGO_LDFLAGS="$CGO_LDFLAGS -Lmyroot/lib -Lmyroot/usr/lib '
'-Lmyroot/lib/{0} '
'-Lmyroot/usr/lib/{0} $LDFLAGS"'.format(
common.get_arch_triplet())])
Expand Down

0 comments on commit 62dc469

Please sign in to comment.