From 02a87b9386d5f8be630db6c9f866e27f52c59607 Mon Sep 17 00:00:00 2001 From: JulesFaucherre Date: Wed, 10 May 2023 16:04:41 +0200 Subject: [PATCH] doc: Added doc about server compatibility --- README.md | 4 ++++ api/api.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18beace6c..c3d385966 100644 --- a/README.md +++ b/README.md @@ -178,3 +178,7 @@ Development instructions for the CircleCI CLI can be found in [HACKING.md](HACKI Please see the [documentation](https://circleci-public.github.io/circleci-cli) or `circleci help` for more. +## Server compatibility + +Some features are accessible on Server only starting specific Server versions: + - validate orb using private orb with the options `--org-slug ` of `circleci orb validate` is only available from **Server 4.2.0** \ No newline at end of file diff --git a/api/api.go b/api/api.go index 3d283930c..a5c71a113 100644 --- a/api/api.go +++ b/api/api.go @@ -564,7 +564,7 @@ func makeOrbRequest(cl *graphql.Client, configContent string, ownerId string) (* } if ownerId != "" { - return nil, errors.Errorf("Your version of server does not support validating orbs that refer private orbs") + return nil, errors.Errorf("Your version of server does not support validating orbs that refer private orbs. Please refer to the README to see compatibility: https://github.com/CircleCI-Public/circleci-cli#server-compatibility") } query := ` query ValidateOrb ($config: String!) {