~sergiusens/snapcraft/serviceBinaryNameRegex

« back to all changes in this revision

Viewing changes to snapcraft/plugins/go.py

  • Committer: Snappy Tarmac
  • Author(s): Sergio Schvezov
  • Date: 2015-09-14 17:51:52 UTC
  • mfrom: (143.6.11 filesets)
  • Revision ID: snappy_tarmac-20150914175152-6digtk1bal2ppooq
Filesets based filtering for stage and snap by sergiusens approved by sergiusens,mvo

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
class GoPlugin(snapcraft.BasePlugin):
21
21
 
22
 
    def __init__(self, name, options):
23
 
        super().__init__(name, options)
24
 
 
25
22
    def env(self, root):
26
23
        # usr/lib/go/bin on newer Ubuntus, usr/bin on trusty
27
24
        return [
28
25
            "GOPATH={}/go".format(root),
29
26
        ]
30
 
 
31
 
    def snap_files(self):
32
 
        return ([], [])  # Go statically links everything, no need for runtime