Skip to content

[WIP] Download tools refactoring #95

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

Merged
merged 24 commits into from
May 13, 2016
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
54b274f
Move utilities to a package to keep things clean
matteosuppo Mar 1, 2016
b6c0cbc
Move initialization of tools in package tools
matteosuppo Mar 1, 2016
3785777
Move the function to download tools in a package
matteosuppo Mar 1, 2016
92da217
Make the indexurl configurable
matteosuppo Mar 3, 2016
57fdc3e
Fix a typo for darwin
matteosuppo Mar 3, 2016
a3991cf
Fix stupid typo again
matteosuppo Mar 3, 2016
d083191
Foxed conflicts in main
matteosuppo Apr 21, 2016
22c5028
[WIP] Working download toold from json
facchinm May 5, 2016
d603c93
Add "github.com/blang/semver" to govendor
facchinm May 11, 2016
62fa42b
adding github.com/blang/semver sources
facchinm May 11, 2016
700a888
move TellCommandNotToSpawnShell to tools package
facchinm May 11, 2016
cbe8007
address filepath issue
facchinm May 11, 2016
33c4356
execute post_install.bat if contained in downloaded tool
facchinm May 11, 2016
fcb34fd
modify reference package_json and call post_install
facchinm May 11, 2016
95a9232
rework "latest" behaviour
facchinm May 11, 2016
1acfc46
remove useless log on windows
facchinm May 11, 2016
1d2a4b7
[WIN] solve some path-replated bugs
facchinm May 11, 2016
2ea2c2a
handle Verbose parameters
facchinm May 12, 2016
e2b5a2a
add exclude list for extended header "files"
facchinm May 12, 2016
2a8dfff
[STUB] add GPG check on package_index
facchinm May 12, 2016
453530a
add time handling in tools
facchinm May 13, 2016
bfd2fb4
GPG check and avoid redownloading the json every time
facchinm May 13, 2016
30a2a69
use https to download package_index.json
facchinm May 13, 2016
b663ce9
add golang.org/x/crypto/openpgp/armor to govendor
facchinm May 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use https to download package_index.json
  • Loading branch information
facchinm committed May 13, 2016
commit 30a2a690be0cb1b39cf195bf54844c05cacf8543
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
address = flag.String("address", "127.0.0.1", "The address where to listen. Defaults to localhost")
signatureKey = flag.String("signatureKey", "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvc0yZr1yUSen7qmE3cxF\nIE12rCksDnqR+Hp7o0nGi9123eCSFcJ7CkIRC8F+8JMhgI3zNqn4cUEn47I3RKD1\nZChPUCMiJCvbLbloxfdJrUi7gcSgUXrlKQStOKF5Iz7xv1M4XOP3JtjXLGo3EnJ1\npFgdWTOyoSrA8/w1rck4c/ISXZSinVAggPxmLwVEAAln6Itj6giIZHKvA2fL2o8z\nCeK057Lu8X6u2CG8tRWSQzVoKIQw/PKK6CNXCAy8vo4EkXudRutnEYHEJlPkVgPn\n2qP06GI+I+9zKE37iqj0k1/wFaCVXHXIvn06YrmjQw6I0dDj/60Wvi500FuRVpn9\ntwIDAQAB\n-----END PUBLIC KEY-----", "Pem-encoded public key to verify signed commandlines")
Tools tools.Tools
indexURL = flag.String("indexURL", "http://downloads.arduino.cc/packages/package_staging_index.json", "The address from where to download the index json containing the location of upload tools")
indexURL = flag.String("indexURL", "https://downloads.arduino.cc/packages/package_staging_index.json", "The address from where to download the index json containing the location of upload tools")
)

type NullWriter int
Expand Down