Skip to content

specs-go/v1/*.go: align the deprecation style#1003

Merged
vbatts merged 1 commit into
opencontainers:mainfrom
vbatts:deprecation-notice
Feb 11, 2023
Merged

specs-go/v1/*.go: align the deprecation style#1003
vbatts merged 1 commit into
opencontainers:mainfrom
vbatts:deprecation-notice

Conversation

@vbatts
Copy link
Copy Markdown
Member

@vbatts vbatts commented Jan 30, 2023

Use the golang styling for deprecation notices. This way importing from this source as a library may give notice.

Signed-off-by: Vincent Batts vbatts@hashbangbash.com

this is a continuation/cleanup of #892 and #965

Comment thread specs-go/v1/config.go Outdated
@vbatts vbatts force-pushed the deprecation-notice branch from 2cb7200 to 7344074 Compare January 31, 2023 00:42
@vbatts
Copy link
Copy Markdown
Member Author

vbatts commented Jan 31, 2023

hahaha, the proper deprecation causes CI to fail
Screenshot from 2023-01-30 19-43-20

@vbatts vbatts force-pushed the deprecation-notice branch from 7344074 to 6d35fb2 Compare February 2, 2023 01:49
@vbatts
Copy link
Copy Markdown
Member Author

vbatts commented Feb 2, 2023

fixed with per-line //nolint declaration https://golangci-lint.run/usage/false-positives/#nolint-directive

PTAL

sajayantony
sajayantony previously approved these changes Feb 2, 2023
Use the golang styling for deprecation notices. This way importing from
this source as a library may give notice.

Co-authored-by: jonjohnsonjr <jonjohnson@google.com>
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
@vbatts
Copy link
Copy Markdown
Member Author

vbatts commented Feb 2, 2023

we could consider a project wide .golangci.strict.yml or .golangci.yml to exclude this precise "SA1019" , but for now it seems doing a per-line of //nolint:staticcheck does the trick.

All green. PTAL

@vbatts vbatts merged commit e7236d5 into opencontainers:main Feb 11, 2023
@vbatts vbatts deleted the deprecation-notice branch February 11, 2023 15:33
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.

4 participants