Skip to content

fix(config): correct file permission error string formatting (fixes #… - #540

Merged
Harsh4902 merged 1 commit into
microcks:masterfrom
ish-g09:fix/file-permission-format
Sep 25, 2026
Merged

Harsh4902 merged 1 commit into
microcks:masterfrom
ish-g09:fix/file-permission-format

Conversation

@ish-g09

@ish-g09 ish-g09 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Description

This PR cleans up the error message returned by getFilePermission() in pkg/config/file_permission_unix.go and pkg/config/file_permission_windows.go:

  1. Fixed word spacing: Added missing spaces after the colon (flags: %s) and joined the concatenated string literals with a comma (%s, change ...), preventing terminal output words from running together.
  2. ST1005 linter compliance: Removed the trailing period at the end of the error string to adhere to standard Go error formatting conventions.

Related issue(s)

Fixes #535

How to test?

Run config package tests locally:

go test -v ./pkg/config/...

Copilot AI lite review requested due to automatic review settings September 23, 2026 16:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Add exact error-message assertions for Unix and Windows.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Low severity

Open (2)
What changed in this PR

This PR corrects Unix and Windows file-permission error formatting and removes trailing punctuation.

Changes:

  • Adds missing spacing and commas in error messages.
  • Removes trailing periods for ST1005 compliance.
File Summary
pkg/​config/​file_permission_unix.go Updates Unix permission error formatting.
pkg/​config/​file_permission_windows.go Updates Windows permission error formatting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/config/file_permission_unix.go
Comment thread pkg/config/file_permission_windows.go

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (2)

@Harsh4902 Harsh4902 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No major findings, LGTM.

@Harsh4902
Harsh4902 merged commit 75c0b1d into microcks:master Sep 25, 2026
4 checks passed
@ish-g09
ish-g09 deleted the fix/file-permission-format branch September 25, 2026 05:00

This branch was successfully deployed

1 active deployment
Build — 19954771 Deployed Sep 23, 2026 by ish-g09 via build-verify-package #714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: fix string formatting and ST1005 linter warning in file permission errors

3 participants