Skip to content

Commit

Permalink
build: compress windows releases in zip instead of tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
kushsharma committed Jun 3, 2021
1 parent 43e2f1d commit 80028a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ archives:
windows: windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
release:
draft: true
prerelease: auto
Expand Down
6 changes: 3 additions & 3 deletions api/handler/v1/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (sv *RuntimeServiceServer) ListJobSpecification(ctx context.Context, req *p

jobSpecs, err := sv.jobSvc.GetAll(namespaceSpec)
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("%s: failed to retrive jobs for project %s", err.Error(), req.GetProjectName()))
return nil, status.Error(codes.Internal, fmt.Sprintf("%s: failed to retrieve jobs for project %s", err.Error(), req.GetProjectName()))
}

jobProtos := []*pb.JobSpecification{}
Expand Down Expand Up @@ -394,7 +394,7 @@ func (sv *RuntimeServiceServer) ListProjects(ctx context.Context, req *pb.ListPr
projectRepo := sv.projectRepoFactory.New()
projects, err := projectRepo.GetAll()
if err != nil {
return nil, status.Error(codes.NotFound, fmt.Sprintf("%s: failed to retrive saved projects", err.Error()))
return nil, status.Error(codes.NotFound, fmt.Sprintf("%s: failed to retrieve saved projects", err.Error()))
}

projSpecsProto := []*pb.ProjectSpecification{}
Expand Down Expand Up @@ -712,7 +712,7 @@ func (sv *RuntimeServiceServer) ListResourceSpecification(ctx context.Context, r

resourceSpecs, err := sv.resourceSvc.GetAll(namespaceSpec, req.DatastoreName)
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("%s: failed to retrive jobs for project %s", err.Error(), req.GetProjectName()))
return nil, status.Error(codes.Internal, fmt.Sprintf("%s: failed to retrieve jobs for project %s", err.Error(), req.GetProjectName()))
}

resourceProtos := []*pb.ResourceSpecification{}
Expand Down
2 changes: 1 addition & 1 deletion job/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (srv *Service) getDependencyResolvedSpecs(proj models.ProjectSpec, projectJ
// fetch all jobs since dependency resolution happens for all jobs in a project, not just for a namespace
jobSpecs, err := projectJobSpecRepo.GetAll()
if err != nil {
return nil, errors.Wrapf(err, "failed to retrive jobs")
return nil, errors.Wrapf(err, "failed to retrieve jobs")
}
srv.notifyProgress(progressObserver, &EventJobSpecFetch{})

Expand Down

0 comments on commit 80028a9

Please sign in to comment.