-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
aliyun-fcli: init at 1.0.3 #142809
aliyun-fcli: init at 1.0.3 #142809
Conversation
# see updatedeps.sh for how to generate this file | ||
goDeps = ./deps.nix; | ||
|
||
patches = [./uuiddep.patch]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch changes the library for generating UUID's from https://github.com/satori/go.uuid to https://github.com/gofrs/uuid, a more active fork. The original library no longer compiles with this package, has not been updated since 2018, and has unpatched CVEs. This issue satori/go.uuid#115 explains the situation.
@@ -0,0 +1,14 @@ | |||
export GOPATH=$(mktemp -d /tmp/aliyunfcli.XXXXXX) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wire this into the package as an update script using nix-shell.
git clone https://github.com/aliyun/fcli | ||
cd fcli | ||
git checkout 996ceb142c237d7010c58e349decd7e4ed96c117 | ||
git apply /path/to/your/local/nixpkgs/pkgs/tools/admin/aliyun-fcli/uuiddep.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use working paths.
git apply /path/to/your/local/nixpkgs/pkgs/tools/admin/aliyun-fcli/uuiddep.patch | ||
glide install | ||
go mod init github.com/aliyun/fcli | ||
go mod tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do go mod here the package could also use buildGoModule.
Motivation for this change
aliyun-fcli is a CLI tool to help manage Function Compute resources in Alibaba Cloud.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)