Comments (9)
@colemickens just confirming are you using the latest bits, there was bug in locating template path which i fixed. I just pulled the latest code and tried. It worked
If you have an older version then you might want to remove 'azure-vhd-utils-for-go' from GOPATH/src/Microsoft before "go getting" the latest.
from azure-vhd-utils.
I just destroyed my entire GOPATH and reran it. Still repros.
$ cd $GOPATH/src/github.com/Mirosoft/azure-vhd-utils-for-go
$ git log
[...]
commit f291a0767221c47a9413038b58a4bbfb3b62ab95
[...]
Date: Sun Mar 6 21:22:04 2016 -0800
[...]
from azure-vhd-utils.
@colemickens could you try this:
1] cd $GOPATH/src/github.com/Mirosoft/azure-vhd-utils-for-go
2] go build
3] ./azure-vhd-utils-for-go inspect footer /nix/store/igjb0w7jpjk43sxwk53l21mz118ivghn-azure-image/disk.vhd
from azure-vhd-utils.
Yup, that works.
from azure-vhd-utils.
cool!
The issue is, when we do "go get azure-vhd-utils-for-go", it build the binary "azure-vhd-utils-for-go" and put it in "$GOPATH/bin". This binary is unable to locate the template path because it's relative in the source code.
from azure-vhd-utils.
Yup, I have a similar problem with one of my projects. I'm currently solving it by distributing the binary + template folder in a docker container and encouraging people to run it that way, but that feels heavy for a tool like this. The other thing I'd considered was just embedding the template files as string constants in my Go source code, but I'm not crazy about that idea either.
from azure-vhd-utils.
Thanks for the fast support!
from azure-vhd-utils.
Thanks for sharing your experience, I guess in case of this tool - reasonable solution is to include template file content as string constants, I will do that.
Let me know if you come across better way of handling this.
from azure-vhd-utils.
closing, this issue is addressed by moving the templates to source file.
from azure-vhd-utils.
Related Issues (20)
- add option to specify upload endpoint HOT 3
- Automatically resize disk to next whole MB HOT 1
- osType support?
- Version of Azure Go SDK in vendor HOT 1
- go get github.com/Microsoft/azure-vhd-utils-for-go fails HOT 1
- Add Support for 4TB files
- Update storage dependency / Create library out of this
- Segmentation fault (core dumped) HOT 1
- Quick question: conversion from VMDK to VHD?
- Upload Incomplete: Some blocks of the VHD failed to upload, rerun the command to upload those blocks HOT 2
- blobname should not append ".vhd"
- Installation problem HOT 9
- -stgaccountname for Azure Stack HOT 1
- Need Support for Azure Stack HOT 1
- create release
- Need support for Azure Government HOT 1
- Any plan for VHDX support HOT 1
- VHDX support
- upload stays on 99%
- This repo is missing important files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-vhd-utils.