Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Mar 22, 2024
1 parent e233f8d commit fcc4140
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/protoschema/plugin/pluginbigquery/pluginbigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package pluginbigquery

import (
"context"
"path/filepath"
"path"
"strings"

bqproto "github.com/GoogleCloudPlatform/protoc-gen-bq-schema/protos"
Expand Down Expand Up @@ -57,9 +57,9 @@ func Handle(
continue
}
basename := tablename + "." + bigquery.FileExtension
dirPath := strings.ReplaceAll(string(fileDescriptor.Package()), ".", string(filepath.Separator))
dirPath := strings.ReplaceAll(string(fileDescriptor.Package()), ".", "/")
responseWriter.AddFile(
filepath.Join(dirPath, basename),
path.Join(dirPath, basename),
string(data),
)
}
Expand Down

0 comments on commit fcc4140

Please sign in to comment.