From 42c113c90fb4b2ad40f5b4c2b37a550bb5ea3f1a Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sun, 28 May 2017 21:30:38 -0400 Subject: [PATCH] compiler/natives: Use gopherjsdev build tag for reading from disk. (#646) 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. --- compiler/natives/doc.go | 2 +- compiler/natives/fs.go | 2 +- compiler/natives/fs_vfsdata.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/natives/doc.go b/compiler/natives/doc.go index 1a97b4c52..c176d5b33 100644 --- a/compiler/natives/doc.go +++ b/compiler/natives/doc.go @@ -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 diff --git a/compiler/natives/fs.go b/compiler/natives/fs.go index afca23f23..57ceec8c5 100644 --- a/compiler/natives/fs.go +++ b/compiler/natives/fs.go @@ -1,4 +1,4 @@ -// +build dev +// +build gopherjsdev package natives diff --git a/compiler/natives/fs_vfsdata.go b/compiler/natives/fs_vfsdata.go index 45b525138..d4fff8d58 100644 --- a/compiler/natives/fs_vfsdata.go +++ b/compiler/natives/fs_vfsdata.go @@ -1,6 +1,6 @@ // Code generated by vfsgen; DO NOT EDIT. -// +build !dev +// +build !gopherjsdev package natives