Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix script path problems by go generating scripts ahead of time #11

Merged
merged 3 commits into from
May 13, 2015

Conversation

albrow
Copy link
Owner

@albrow albrow commented May 13, 2015

The executable at scripts/main.go converts all the script files into static strings and writes the result to scripts.go. For users of the zoom library, scripts.go will just work. The onus is on me to remember to run go generate every time I change the scripts.

This will work with all types of configurations (godep, multiple GOPATHS, etc.) and is safe for bundling into binaries.

Just waiting for feedback to make sure this works for everyone before I merge it.

Problems were occurring when people were using godep or multiple go paths.
The new technique is to use the build package to locate the directory where
Zoom lives and then find the scripts relative to that.
albrow added a commit that referenced this pull request May 13, 2015
Fix script path problems by go generating scripts ahead of time
@albrow albrow merged commit c7f6877 into develop May 13, 2015
@albrow
Copy link
Owner Author

albrow commented May 13, 2015

This change is now included in version 0.9.3 on master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant