From 8f98e3acfa53cf8fceb88051e9beaa5fc0555e78 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 8 Apr 2021 19:31:10 -0700 Subject: [PATCH] fix build with fips tags --- cmd/update.go | 5 ----- cmd/update_nofips.go | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 cmd/update_nofips.go diff --git a/cmd/update.go b/cmd/update.go index e98f1c523..7c3f74feb 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -1,5 +1,3 @@ -// +build !fips - /* * MinIO Cloud Storage, (C) 2015-2021 MinIO, Inc. * @@ -53,9 +51,6 @@ const ( ) var ( - // Newer official download info URLs appear earlier below. - minioReleaseInfoURL = minioReleaseURL + "minio.sha256sum" - // For windows our files have .exe additionally. minioReleaseWindowsInfoURL = minioReleaseURL + "minio.exe.sha256sum" ) diff --git a/cmd/update_nofips.go b/cmd/update_nofips.go new file mode 100644 index 000000000..8051e57bc --- /dev/null +++ b/cmd/update_nofips.go @@ -0,0 +1,24 @@ +// +build !fips + +/* + * MinIO Cloud Storage, (C) 2021 MinIO, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cmd + +var ( + // Newer official download info URLs appear earlier below. + minioReleaseInfoURL = minioReleaseURL + "minio.sha256sum" +)