Skip to content

Commit

Permalink
compiler/natives: Use gopherjsdev build tag for reading from disk. (#646
Browse files Browse the repository at this point in the history
)

Previously, the default ("dev") build tag was used, but that's generic
and users could unintentionally opt into having natives package read
from disk when using "dev" build tag for purposes of their own project.

Fixes #645.
  • Loading branch information
dmitshur committed May 29, 2017
1 parent 6997325 commit 42c113c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/natives/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// in src subfolder.
package natives

//go:generate vfsgendev -source="github.com/gopherjs/gopherjs/compiler/natives".FS
//go:generate vfsgendev -source="github.com/gopherjs/gopherjs/compiler/natives".FS -tag=gopherjsdev
2 changes: 1 addition & 1 deletion compiler/natives/fs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build dev
// +build gopherjsdev

package natives

Expand Down
2 changes: 1 addition & 1 deletion compiler/natives/fs_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 42c113c

Please sign in to comment.