@@ -101,7 +101,7 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
101101
102102 // Get the GitHub release.
103103 fmt .Fprintf (stderr , "checking if release %s exists...\n " , version )
104- release , err := gh .getReleaseByTagIncludingDraft (ctx , "bazelbuild " , "rules_go" , version )
104+ release , err := gh .getReleaseByTagIncludingDraft (ctx , "bazel-contrib " , "rules_go" , version )
105105 if err != nil && ! errors .Is (err , errReleaseNotFound ) {
106106 return err
107107 }
@@ -181,7 +181,7 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
181181 }
182182
183183 // Upload to mirror.bazel.build.
184- arcGHURLWithoutScheme := fmt .Sprintf ("github.com/bazelbuild /rules_go/releases/download/%[1]s/rules_go-%[1]s.zip" , version )
184+ arcGHURLWithoutScheme := fmt .Sprintf ("github.com/bazel-contrib /rules_go/releases/download/%[1]s/rules_go-%[1]s.zip" , version )
185185 if uploadToMirror {
186186 fmt .Fprintf (stderr , "uploading archive to mirror.bazel.build...\n " )
187187 if err := copyFileToMirror (ctx , arcGHURLWithoutScheme , arcName ); err != nil {
@@ -200,17 +200,17 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
200200 Body : & rnotesStr ,
201201 Draft : & draft ,
202202 }
203- if release , _ , err = gh .Repositories .CreateRelease (ctx , "bazelbuild " , "rules_go" , release ); err != nil {
203+ if release , _ , err = gh .Repositories .CreateRelease (ctx , "bazel-contrib " , "rules_go" , release ); err != nil {
204204 return err
205205 }
206206 } else {
207207 fmt .Fprintf (stderr , "updating release...\n " )
208208 release .Body = & rnotesStr
209- if release , _ , err = gh .Repositories .EditRelease (ctx , "bazelbuild " , "rules_go" , release .GetID (), release ); err != nil {
209+ if release , _ , err = gh .Repositories .EditRelease (ctx , "bazel-contrib " , "rules_go" , release .GetID (), release ); err != nil {
210210 return err
211211 }
212212 for _ , asset := range release .Assets {
213- if _ , err := gh .Repositories .DeleteReleaseAsset (ctx , "bazelbuild " , "rules_go" , asset .GetID ()); err != nil {
213+ if _ , err := gh .Repositories .DeleteReleaseAsset (ctx , "bazel-contrib " , "rules_go" , asset .GetID ()); err != nil {
214214 return err
215215 }
216216 }
@@ -224,7 +224,7 @@ func runPrepare(ctx context.Context, stderr io.Writer, args []string) error {
224224 Name : "rules_go-" + version + ".zip" ,
225225 MediaType : "application/zip" ,
226226 }
227- if _ , _ , err := gh .Repositories .UploadReleaseAsset (ctx , "bazelbuild " , "rules_go" , release .GetID (), uploadOpts , arcFile ); err != nil {
227+ if _ , _ , err := gh .Repositories .UploadReleaseAsset (ctx , "bazel-contrib " , "rules_go" , release .GetID (), uploadOpts , arcFile ); err != nil {
228228 return err
229229 }
230230
0 commit comments