diff --git a/.codebeatsettings b/.codebeatsettings deleted file mode 100644 index 8e5dd08..0000000 --- a/.codebeatsettings +++ /dev/null @@ -1,11 +0,0 @@ -{ - "GOLANG": { - "ABC": [15, 25, 50, 70], - "LOC": [30, 45, 70, 100], - "BLOCK_NESTING": [4, 6, 8, 10], - "TOO_MANY_IVARS": [50, 75, 100, 150], - "TOO_MANY_FUNCTIONS": [64, 128, 256, 512], - "TOTAL_LOC": [1500, 3000, 5000, 10000], - "TOTAL_COMPLEXITY": [350, 600, 900, 1200] - } -} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d0ad1de..605744a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ updates: target-branch: "develop" schedule: interval: "daily" - timezone: "Europe/London" + timezone: "Etc/UTC" time: "03:00" labels: - "PR • MAINTENANCE" @@ -26,8 +26,8 @@ updates: target-branch: "develop" schedule: interval: "daily" - timezone: "Europe/London" - time: "04:00" + timezone: "Etc/UTC" + time: "03:00" labels: - "PR • MAINTENANCE" assignees: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc3a04f..eb2a26e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: - go: [ '1.21.x', '1.22.x' ] + go: [ '1.22.x', '1.23.x' ] steps: - name: Checkout diff --git a/Makefile b/Makefile index d0839e0..5aa6f39 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ################################################################################ -# This Makefile generated by GoMakeGen 3.0.2 using next command: +# This Makefile generated by GoMakeGen 3.2.0 using next command: # gomakegen --mod . # # More info: https://kaos.sh/gomakegen @@ -11,6 +11,16 @@ ifdef VERBOSE ## Print verbose information (Flag) VERBOSE_FLAG = -v endif +ifdef PROXY ## Force proxy usage for downloading dependencies (Flag) +export GOPROXY=https://proxy.golang.org/cached-only,direct +endif + +ifdef CGO ## Enable CGO usage (Flag) +export CGO_ENABLED=1 +else +export CGO_ENABLED=0 +endif + COMPAT ?= 1.19 MAKEDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) GITREV ?= $(shell test -s $(MAKEDIR)/.git && git rev-parse --short HEAD) @@ -107,8 +117,9 @@ help: ## Show this info @echo -e '\n\033[1mVariables:\033[0m\n' @grep -E '^ifdef [A-Z_]+ .*?## .*$$' $(abspath $(lastword $(MAKEFILE_LIST))) \ | sed 's/ifdef //' \ + | sort -h \ | awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-11s\033[0m %s\n", $$1, $$2}' @echo -e '' - @echo -e '\033[90mGenerated by GoMakeGen 3.0.2\033[0m\n' + @echo -e '\033[90mGenerated by GoMakeGen 3.2.0\033[0m\n' ################################################################################ diff --git a/README.md b/README.md index 1896022..81abc3c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@
+
@@ -71,7 +72,7 @@ EOF
#### From source
-To build the `fmtc` from scratch, make sure you have a working Go 1.20+ workspace (_[instructions](https://go.dev/doc/install)_), then:
+To build the `fmtc` from scratch, make sure you have a working Go 1.22+ workspace (_[instructions](https://go.dev/doc/install)_), then:
```
go install github.com/essentialkaos/fmtc@latest
diff --git a/cli/cli.go b/cli/cli.go
index f4011cf..9fbbc54 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -13,17 +13,17 @@ import (
"os"
"runtime"
- "github.com/essentialkaos/ek/v12/fmtc"
- "github.com/essentialkaos/ek/v12/fsutil"
- "github.com/essentialkaos/ek/v12/options"
- "github.com/essentialkaos/ek/v12/support"
- "github.com/essentialkaos/ek/v12/support/deps"
- "github.com/essentialkaos/ek/v12/terminal/tty"
- "github.com/essentialkaos/ek/v12/usage"
- "github.com/essentialkaos/ek/v12/usage/completion/bash"
- "github.com/essentialkaos/ek/v12/usage/completion/fish"
- "github.com/essentialkaos/ek/v12/usage/completion/zsh"
- "github.com/essentialkaos/ek/v12/usage/man"
+ "github.com/essentialkaos/ek/v13/fmtc"
+ "github.com/essentialkaos/ek/v13/fsutil"
+ "github.com/essentialkaos/ek/v13/options"
+ "github.com/essentialkaos/ek/v13/support"
+ "github.com/essentialkaos/ek/v13/support/deps"
+ "github.com/essentialkaos/ek/v13/terminal/tty"
+ "github.com/essentialkaos/ek/v13/usage"
+ "github.com/essentialkaos/ek/v13/usage/completion/bash"
+ "github.com/essentialkaos/ek/v13/usage/completion/fish"
+ "github.com/essentialkaos/ek/v13/usage/completion/zsh"
+ "github.com/essentialkaos/ek/v13/usage/man"
)
// ////////////////////////////////////////////////////////////////////////////////// //
@@ -31,7 +31,7 @@ import (
// Basic utility info
const (
APP = "fmtc"
- VER = "0.1.2"
+ VER = "1.0.0"
DESC = "Utility for rendering fmtc formatted data"
)
diff --git a/common/fmtc.spec b/common/fmtc.spec
index 98313b1..1c3073c 100644
--- a/common/fmtc.spec
+++ b/common/fmtc.spec
@@ -6,7 +6,7 @@
Summary: Simple utility for rendering fmtc formatted data
Name: fmtc
-Version: 0.1.2
+Version: 1.0.0
Release: 0%{?dist}
Group: Applications/System
License: Apache License, Version 2.0
@@ -16,7 +16,7 @@ Source0: https://source.kaos.st/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: golang >= 1.21
+BuildRequires: golang >= 1.22
Provides: %{name} = %{version}-%{release}
@@ -41,7 +41,7 @@ fi
pushd %{name}
- go build %{name}.go
+ %{__make} %{?_smp_mflags} all
cp LICENSE ..
popd
@@ -97,6 +97,10 @@ fi
################################################################################
%changelog
+* Tue Sep 24 2024 Anton Novojilov