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

aliyun-fcli: init at 1.0.3 #142809

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

aliyun-fcli: init at 1.0.3 #142809

wants to merge 2 commits into from

Conversation

ornxka
Copy link
Contributor

@ornxka ornxka commented Oct 25, 2021

Motivation for this change

aliyun-fcli is a CLI tool to help manage Function Compute resources in Alibaba Cloud.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

# see updatedeps.sh for how to generate this file
goDeps = ./deps.nix;

patches = [./uuiddep.patch];
Copy link
Contributor Author

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)
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 19, 2022
@onny onny marked this pull request as draft September 6, 2022 13:33
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 6, 2022
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants