Skip to content

Commit

Permalink
Fixes assetFS is not exportable elazarl#45
Browse files Browse the repository at this point in the history
  • Loading branch information
joegasewicz committed Apr 12, 2022
1 parent 0cfd540 commit 4648695
Show file tree
Hide file tree
Showing 6 changed files with 353 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
.idea
vendor
tags
Expand Down
1 change: 1 addition & 0 deletions .vscode/configurationCache.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"buildTargets":["all","build","build_all","check","clean","default","install"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
4 changes: 4 additions & 0 deletions .vscode/dryrun.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
make: Entering directory `/Users/josefgasewicz/Contrib/go-bindata-assetfs'
go build CGO_ENABLED=0 -ldflags "-X main.Version=1.0.1 -X main.Build=`git rev-parse HEAD`" -o go-bindata-assetfs
make: Leaving directory `/Users/josefgasewicz/Contrib/go-bindata-assetfs'

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}
340 changes: 340 additions & 0 deletions .vscode/targets.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
# GNU Make 3.81
# Copyright (C) 2006 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# This program built for i386-apple-darwin11.3.0


# Make data base, printed on Tue Apr 12 13:59:03 2022

# Variables

# automatic
<D = $(patsubst %/,%,$(dir $<))
# automatic
?F = $(notdir $?)
# environment
VSCODE_LOG_NATIVE = false
# automatic
?D = $(patsubst %/,%,$(dir $?))
# automatic
@D = $(patsubst %/,%,$(dir $@))
# automatic
@F = $(notdir $@)
# makefile
CURDIR := /Users/josefgasewicz/Contrib/go-bindata-assetfs
# makefile (from `Makefile', line 4)
K := some string some string some string some string
# makefile (from `Makefile', line 2)
SHELL := bash
# makefile (from `Makefile', line 7)
ROOT_DIR := /Users/josefgasewicz/Contrib/go-bindata-assetfs
# environment
VSCODE_NLS_CONFIG = {"locale":"en-gb","availableLanguages":{},"_languagePackSupport":true}
# environment
ENABLE_PERMISSIONS_AUTH = true
# environment
_ = /usr/bin/make
# environment
SERVICE_AUTH_TOKEN =
# environment
TRANSACTION_STORE = /Users/josefgasewicz/Work/ONSdigital/content/zebedee/transactions
# makefile (from `Makefile', line 1)
MAKEFILE_LIST := Makefile
# makefile (from `Makefile', line 14)
ARCHITECTURES = amd64 arm64
# environment
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess
# makefile (from `Makefile', line 11)
VERSION = 1.0.1
# environment
VSCODE_VERBOSE_LOGGING = true
# environment
__CFBundleIdentifier = com.microsoft.VSCode
# environment
ENCRYPTION_DISABLED = true
# environment
VSCODE_IPC_HOOK_EXTHOST = /var/folders/31/16hjxyv54nlf_n_lsb6yxhcr0000gn/T/vscode-ipc-016be1c8-690a-4dd0-b4bf-fbe85136714b.sock
# environment
VSCODE_CWD = /
# environment
GOPROXY = https://proxy.golang.org,direct
# environment
PATH = /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/opt/libpq/bin:/Users/josefgasewicz/Work/ONSdigital/dp-cli/dp:/usr/local/opt/openjdk@8/bin:/Users/josefgasewicz/go/bin:/usr/local/opt/[email protected]/bin:/bin:/Users/josefgasewicz/.nvm/versions/node/v17.3.1/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin
# environment
ENABLE_PRIVATE_ENDPOINTS = true
# environment

GOPATH = /Users/josefgasewicz/go
# environment
NVM_BIN = /Users/josefgasewicz/.nvm/versions/node/v17.3.1/bin
# environment
LaunchInstanceID = 07CFCEA9-C0B1-4136-97EA-A14AB01E4C72
# environment
VSCODE_LOG_STACK = false
# environment
ELECTRON_RUN_AS_NODE = 1
# makefile (from `Makefile', line 17)
LDFLAGS = CGO_ENABLED=0 -ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"
# environment
zebedee_root = /Users/josefgasewicz/Work/ONSdigital/content
# default
.FEATURES := target-specific order-only second-expansion else-if archives jobserver check-symlink
# makefile (from `Makefile', line 3)
EXECUTABLES = git go find pwd
# environment
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.irN3R1ZF5t/Listeners
# automatic
%F = $(notdir $%)
# makefile (from `Makefile', line 13)
PLATFORMS = darwin linux windows
# environment
VSCODE_PIPE_LOGGING = true
# environment
PWD = /Users/josefgasewicz/Contrib/go-bindata-assetfs
# environment
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
# environment
GOMODCACHE = /Users/josefgasewicz/go/pkg/mod
# environment
HOME = /Users/josefgasewicz
# default
MAKEFILEPATH = $(shell /usr/bin/xcode-select -print-path 2>/dev/null || echo /Developer)/Makefiles
# makefile (from `Makefile', line 10)
BINARY = go-bindata-assetfs
# environment
VSCODE_CODE_CACHE_PATH = /Users/josefgasewicz/Library/Application Support/Code/CachedData/8dfae7a5cd50421d10cd99cb873990460525a898
# environment
LOGNAME = josefgasewicz
# environment
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 1
# environment
NVM_CD_FLAGS =
# environment
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
# automatic
^D = $(patsubst %/,%,$(dir $^))
# environment
FORMAT_LOGGING = true
# environment
XPC_FLAGS = 0x0
# default
MAKE = $(MAKE_COMMAND)
# default
MAKECMDGOALS := all
# environment
SHLVL = 2
# environment
PUBLISHING_THREAD_POOL_SIZE = 10
# default
MAKE_VERSION := 3.81
# environment
USER = josefgasewicz
# makefile
.DEFAULT_GOAL := default
# automatic
%D = $(patsubst %/,%,$(dir $%))
# makefile (from `Makefile', line 9)
OUT_DIR = builds
# default
MAKE_COMMAND := /Library/Developer/CommandLineTools/usr/bin/make
# default
.VARIABLES :=
# environment
TMPDIR = /var/folders/31/16hjxyv54nlf_n_lsb6yxhcr0000gn/T/
# automatic
*F = $(notdir $*)
# environment
VSCODE_IPC_HOOK = /Users/josefgasewicz/Library/Application Support/Code/1.66.1-main.sock
# makefile
MAKEFLAGS = Rrqp
# environment
DATASET_ROUTES_ENABLED = true
# environment
MFLAGS = -Rrqp
# automatic
*D = $(patsubst %/,%,$(dir $*))
# environment
NVM_DIR = /Users/josefgasewicz/.nvm
# environment
XPC_SERVICE_NAME = application.com.microsoft.VSCode.11811087.11811093
# automatic
+D = $(patsubst %/,%,$(dir $+))
# automatic
+F = $(notdir $+)
# environment
__CF_USER_TEXT_ENCODING = 0x1F5:0:2
# environment
COMMAND_MODE = unix2003
# default
MAKEFILES :=
# makefile (from `Makefile', line 12)
BUILD = `git rev-parse HEAD`
# automatic
<F = $(notdir $<)
# environment
WEBSITE = /Users/josefgasewicz/Work/ONSdigital/content/zebedee/master
# environment
LC_ALL = C
# environment
SECURITYSESSIONID = 18948
# automatic
^F = $(notdir $^)
# default
SUFFIXES :=
# default
.INCLUDE_DIRS = /usr/local/include
# environment
MAKELEVEL := 0
# environment
GPG_TTY = not a tty
# environment
LANG = C
# environment
VSCODE_PID = 21848
# environment
VAULT_ADDR = http://127.0.0.1:8200
# variable set hash-table stats:
# Load=92/1024=9%, Rehash=0, Collisions=3/133=2%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# . (device 16777220, inode 12224279): 14 files, no impossibilities.

# 14 files, no impossibilities in 1 directories.

# Implicit Rules

# No implicit rules.

# Files

all: clean build_all install
# Phony target (prerequisite of .PHONY).
# Command-line target.
# Implicit rule search has not been done.
# File does not exist.
# File has been updated.
# Needs to be updated (-q is set).
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/4=0%

.PHONY: check clean install build_all all
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# Not a target:
.SUFFIXES:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# Not a target:
Makefile:
# Implicit rule search has been done.
# Last modified 2022-04-12 13:58:47
# File has been updated.
# Successfully updated.
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/0=0%

build:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# commands to execute (from `Makefile', line 24):
go build ${LDFLAGS} -o ${BINARY}


default: build
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

build_all:
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
# commands to execute (from `Makefile', line 27):
mkdir -p $(OUT_DIR)
@go mod verify
$(foreach GOOS, $(PLATFORMS),\
$(foreach GOARCH, $(ARCHITECTURES), $(shell export GOOS=$(GOOS); export GOARCH=$(GOARCH); go build -v -o $(OUT_DIR)/$(BINARY)-v$(VERSION)-$(GOOS)-$(GOARCH))))


# Not a target:
.DEFAULT:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

clean:
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# Implicit/static pattern stem: `'
# File does not exist.
# File has been updated.
# Needs to be updated (-q is set).
# automatic
# @ := clean
# automatic
# % :=
# automatic
# * :=
# automatic
# + :=
# automatic
# | :=
# automatic
# < :=
# automatic
# ^ :=
# automatic
# ? :=
# variable set hash-table stats:
# Load=8/32=25%, Rehash=0, Collisions=2/12=17%
# commands to execute (from `Makefile', line 37):
find ${OUT_DIR} -name '${BINARY}[-?][a-zA-Z0-9]*[-?][a-zA-Z0-9]*' -delete



check:
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.

install:
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
# commands to execute (from `Makefile', line 33):
go install ${LDFLAGS}


# files hash-table stats:
# Load=11/1024=1%, Rehash=0, Collisions=0/34=0%
# VPATH Search Paths

# No `vpath' search paths.

# No general (`VPATH' variable) search path.

# # of strings in strcache: 1
# # of strcache buffers: 1
# strcache size: total = 4096 / max = 4096 / min = 4096 / avg = 4096
# strcache free: total = 4087 / max = 4087 / min = 4087 / avg = 4087

# Finished Make data base on Tue Apr 12 13:59:03 2022


4 changes: 4 additions & 0 deletions go-bindata-assetfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ func assetFS() *assetfs.AssetFS {
panic("unreachable")
}`)
}
fmt.Fprintln(out, `
func AssetFS() *assetfs.AssetFS {
return assetFS()
}`)
// Close files BEFORE remove calls (don't use defer).
in.Close()
out.Close()
Expand Down

0 comments on commit 4648695

Please sign in to comment.