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/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 7b2110f..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,51 +0,0 @@ -_Before opening an issue, search for similar bug reports or feature requests on GitHub Issues. If yes, please add a_ 👍 _reaction to the existing issue. If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below. Erase the other section and everything on and above this line._ - -### Bug report - -**System info:** - -* **Verbose version info (`path -vv`):** -* **Install tools:** - -**Steps to reproduce:** - -1. [First Step] -2. [Second Step] -3. [and so on...] - -**Expected behavior:** - -[What you expected to happen] - -**Actual behavior:** - -[What actually happened] - -**Additional info:** - -[Include gist of relevant config, logs, etc.] - -Please run those if possible and link them from a [gist](http://gist.github.com). - ---- - -### Feature Request - -Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them. - -**Proposal:** - -[Description of the feature] - -**Current behavior:** - -[What currently happens] - -**Desired behavior:** - -[What you would like to happen] - -**Use case:** - -[Why is this important (helps with prioritizing requests)] - diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..d7bb0d8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,64 @@ +name: ❗ Bug Report +description: File a bug report +title: "[Bug]: " +labels: ["issue • bug"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar bug reports. If so, please add a 👍 reaction to the existing issue. + + - type: textarea + attributes: + label: Verbose application info + description: Output of `path -vv` command + render: shell + validations: + required: true + + - type: dropdown + id: version + attributes: + label: Install tools + description: How did you install this application + options: + - From Sources + - RPM Package + - Prebuilt Binary + default: 0 + validations: + required: true + + - type: textarea + attributes: + label: Steps to reproduce + description: Short guide on how to reproduce this problem on our site + placeholder: | + 1. [First Step] + 2. [Second Step] + 3. [and so on...] + validations: + required: true + + - type: textarea + attributes: + label: Expected behavior + description: What you expected to happen + validations: + required: true + + - type: textarea + attributes: + label: Actual behavior + description: What actually happened + validations: + required: true + + - type: textarea + attributes: + label: Additional info + description: Include gist of relevant config, logs, etc. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml new file mode 100644 index 0000000..fbf8545 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,26 @@ +name: ❓ Question +description: Question about application, configuration or code +title: "[Question]: " +labels: ["issue • question"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar question. If so, please add a 👍 reaction to the existing issue. + + - type: textarea + attributes: + label: Question + description: Detailed question + validations: + required: true + + - type: textarea + attributes: + label: Related version application info + description: Output of `path -vv` command + render: shell diff --git a/.github/ISSUE_TEMPLATE/suggestion.yml b/.github/ISSUE_TEMPLATE/suggestion.yml new file mode 100644 index 0000000..39c69e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/suggestion.yml @@ -0,0 +1,43 @@ +name: ➕ Suggestion +description: Suggest new feature or improvement +title: "[Suggestion]: " +labels: ["issue • suggestion"] +assignees: + - andyone + +body: + - type: markdown + attributes: + value: | + > [!IMPORTANT] + > Before you open an issue, search GitHub Issues for a similar feature requests. If so, please add a 👍 reaction to the existing issue. + > + > Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them. + + - type: textarea + attributes: + label: Proposal + description: Description of the feature + validations: + required: true + + - type: textarea + attributes: + label: Current behavior + description: What currently happens + validations: + required: true + + - type: textarea + attributes: + label: Desired behavior + description: What you would like to happen + validations: + required: true + + - type: textarea + attributes: + label: Use case + description: Why is this important (helps with prioritizing requests) + validations: + required: true 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 967b030..79a79e3 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 @@ -59,7 +59,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: '1.22.x' - name: Download dependencies run: make deps diff --git a/README.md b/README.md index 386d3dc..ab373e1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@
-
+
@@ -60,7 +60,7 @@ Summary
#### From source
-To build the `path` from scratch, make sure you have a working Go 1.20+ workspace (_[instructions](https://go.dev/doc/install)_), then:
+To build the `path` from scratch, make sure you have a working Go 1.22+ workspace (_[instructions](https://go.dev/doc/install)_), then:
```
go install github.com/essentialkaos/path@latest
diff --git a/cli/cli.go b/cli/cli.go
index 4f0b9ce..c86e91e 100644
--- a/cli/cli.go
+++ b/cli/cli.go
@@ -13,17 +13,17 @@ import (
"runtime"
"strings"
- "github.com/essentialkaos/ek/v12/fmtc"
- "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"
- "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/options"
+ "github.com/essentialkaos/ek/v13/support"
+ "github.com/essentialkaos/ek/v13/support/deps"
+ "github.com/essentialkaos/ek/v13/terminal"
+ "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 = "path"
- VER = "1.0.2"
+ VER = "1.0.3"
DESC = "Dead simple tool for working with paths"
)
diff --git a/cli/commands.go b/cli/commands.go
index d17aa7c..d59714c 100644
--- a/cli/commands.go
+++ b/cli/commands.go
@@ -15,10 +15,10 @@ import (
"strconv"
"strings"
- "github.com/essentialkaos/ek/v12/fsutil"
- "github.com/essentialkaos/ek/v12/options"
- "github.com/essentialkaos/ek/v12/path"
- "github.com/essentialkaos/ek/v12/strutil"
+ "github.com/essentialkaos/ek/v13/fsutil"
+ "github.com/essentialkaos/ek/v13/options"
+ "github.com/essentialkaos/ek/v13/path"
+ "github.com/essentialkaos/ek/v13/strutil"
)
// ////////////////////////////////////////////////////////////////////////////////// //
diff --git a/common/path.spec b/common/path.spec
index c0dc0ae..df4ca45 100644
--- a/common/path.spec
+++ b/common/path.spec
@@ -10,7 +10,7 @@
Summary: Dead simple tool for working with paths
Name: path
-Version: 1.0.2
+Version: 1.0.3
Release: 0%{?dist}
Group: Applications/System
License: Apache License, Version 2.0
@@ -22,7 +22,7 @@ Source100: checksum.sha512
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: golang >= 1.21
+BuildRequires: golang >= 1.22
Provides: %{name} = %{version}-%{release}
@@ -47,7 +47,7 @@ fi
%build
pushd %{name}
- go build %{name}.go
+ %{__make} %{?_smp_mflags} all
cp LICENSE ..
popd
@@ -103,6 +103,9 @@ fi
################################################################################
%changelog
+* Tue Sep 24 2024 Anton Novojilov