Giter VIP home page Giter VIP logo

armclient-go's People

Contributors

bingosummer avatar jeffhollan avatar jluk avatar luanshixia avatar yangl900 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

armclient-go's Issues

Maintain our own Homebrew tap

The new formula policy for the official tap homebrew-core is strict. They enforce this by a check:

$ brew audit --new-formula armclient-go
armclient-go:
  * GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)
  * GitHub repository too new (<30 days old)
Error: 2 problems in 1 formula

We can work on earning stars, or alternatively, create and maintain our own tap. A tap is just a simple GitHub repo as a container for formulae. If you have a repo like yangl900/homebrew-xxx, users can install the tool using just one line:

brew install yangl900/xxx/armclient-go

Can you please create such a repo, and then I can add the formula (a Ruby file armclient-go.rb) into it.

A simple example:
https://github.com/Azure/homebrew-draft

Full documentation:
https://github.com/Homebrew/brew/blob/master/docs/How-to-Create-and-Maintain-a-Tap.md

Latest released version doesn't work on MacOS 12 or higher

Running the latest release on MacOS 13.4, I run into this error:

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x13856fe, 0x21)
	/usr/local/go/src/runtime/panic.go:605 +0x95 fp=0x7ff7bfeff370 sp=0x7ff7bfeff350 pc=0x1029b05
runtime.goenvs()
	/usr/local/go/src/runtime/os_darwin.go:108 +0x83 fp=0x7ff7bfeff3a0 sp=0x7ff7bfeff370 pc=0x10273a3
runtime.schedinit()
	/usr/local/go/src/runtime/proc.go:492 +0xa1 fp=0x7ff7bfeff3e0 sp=0x7ff7bfeff3a0 pc=0x102c4e1
runtime.rt0_go(0x7ff7bfeff410, 0x2, 0x7ff7bfeff410, 0x1000000, 0x2, 0x7ff7bfeff628, 0x7ff7bfeff634, 0x0, 0x7ff7bfeff637, 0x7ff7bfeff673, ...)
	/usr/local/go/src/runtime/asm_amd64.s:175 +0x1eb fp=0x7ff7bfeff3e8 sp=0x7ff7bfeff3e0 pc=0x1053deb

This is a known problem with programs built with go version 1.10 or earlier running on MacOS 12 or later. See here: https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

Can we get a new version release, preferably on homebrew as well? Thank you :)

armclient on windows

Hi,

I am using armclient on windows to edit a netapp volume's network feature

Below is the error while executing in powershell:

.\armclient.exe post "/subscriptions/$subscription/providers/Microsoft.NetApp/locations/$location/queryNetworkSiblingSet?api-version=2021-12-01-preview {`" `"networkSiblingSetId`" : `"$networkSiblingSetId`", `"subnetId`" : `"$subnetId`" `"}"
networkSiblingSetId
{
  "error": {
    "code": "DeserializationError",
    "message": "Input for NetworkSiblingSetEntityModel was not accepted. Please review the following messages and try again: - Content is not a valid json string"
  }
}

I also tried put the json body into a variable but got another error:

Request failed: Post https://management.azure.com/subscriptions/xxx/providers/Microsoft.NetApp/locations/eastus2euap/queryNetworkSiblingSet?api-version=2021-12-01-preview {
  subnetId: xxx,
  networkSiblingSetId: xxx
}: stream error: stream ID 1; PROTOCOL_ERROR

Does anyone know what's the syntax error and how to fix it?

Only works with the first tenant when using locally

Potentially change to allow you to specify a setting with the tenant ID you want to use (armclient set tenantId {tenantId}) and would use to acquireAuthToken(tenantId string) and return the token for that tenant.

I'm a member of a bunch of tenants and can't use the token without specifying the right one. Let me know if you've thought about how you'd want to design accounts a part of multiple tenants, and if you have proposal or something similar to above I can potential take a stab at supporting.

Honestly I'd be happy enough in the short term with a flag for tenant Id: armclient token -tenantId {tenantId} which I can use to generate bearer tokens for Postman requests.

Makefile only has linux output

I am working on adding this as a Homebrew formula. The way it works is calling make to build from source. Therefore we need GOOS=darwin also.

Is it possible to login to environments other than Azure cloud?

With the original armclient you can specify an environment when logging in like armclient login fairfax, or you can defer login to az login with armclient azlogin, which I presume will use the cloud set by az cloud set CLOUD_NAME_HERE. Is this possible with armclient-go? If not, I'm happy to open a PR to add whichever of the two approaches you prefer, I just don't want to spend time adding something that already exists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.