You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Printf("Publishing a release to %s and committing a mixin feed to %s\n", mixinRepo, pkgRepo)
84
+
fmt.Printf("If you use different repository names, set %s and %s then call mage Publish instead.\n", releases.ReleaseRepository, releases.PackagesRemote)
85
+
os.Setenv(releases.ReleaseRepository, mixinRepo)
86
+
os.Setenv(releases.PackagesRemote, pkgRepo)
87
+
88
+
m.Publish()
89
+
}
90
+
91
+
// Install the mixin
92
+
func (mMagefile) Install() {
93
+
porterHome:=os.Getenv("PORTER_HOME")
94
+
ifporterHome=="" {
95
+
home, _:=os.UserHomeDir()
96
+
porterHome=filepath.Join(home, ".porter")
97
+
}
98
+
if_, err:=os.Stat(porterHome); err!=nil {
99
+
panic("Could not find a Porter installation. Make sure that Porter is installed and set PORTER_HOME if you are using a non-standard installation path")
100
+
}
101
+
fmt.Printf("Installing the %s mixin into %s\n", m.MixinName, porterHome)
0 commit comments