Skip to content

Commit

Permalink
remove membucket query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Singer committed Feb 10, 2023
1 parent 3113a41 commit 21909d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
12 changes: 9 additions & 3 deletions pkg/lang/golang/plugin_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,16 @@ func (p *PersistFsPlugin) transformFS(f *core.SourceFile, cap *core.Annotation,

newNodeContent := strings.Replace(result.args.Content(), result.args.Content(), ArgumentListToString(args), 1)

f.ReplaceNodeContent(result.args, newNodeContent)
f.ReplaceNodeContent(result.operator, "blob")
err := f.ReplaceNodeContent(result.args, newNodeContent)
if err != nil {
return nil, err
}
err = f.ReplaceNodeContent(result.operator, "blob")
if err != nil {
return nil, err
}

err := UpdateImportsInFile(f, p.runtime.GetFsImports(), []Import{{Package: "gocloud.dev/blob/fileblob"}})
err = UpdateImportsInFile(f, p.runtime.GetFsImports(), []Import{{Package: "gocloud.dev/blob/fileblob"}})
if err != nil {
return nil, err
}
Expand Down
17 changes: 0 additions & 17 deletions pkg/lang/golang/queries/gocloud/mem_bucket.scm

This file was deleted.

0 comments on commit 21909d4

Please sign in to comment.