Skip to content

collector: use path/filepath for handling file paths#1228

Merged
SuperQ merged 1 commit intomasterfrom
mdl-collector-filepath
Jan 21, 2019
Merged

collector: use path/filepath for handling file paths#1228
SuperQ merged 1 commit intomasterfrom
mdl-collector-filepath

Conversation

@mdlayher
Copy link
Contributor

Signed-off-by: Matt Layher mdlayher@gmail.com

It's a nitpick, but this is technically correct:

The path package should only be used for paths separated by forward slashes, such as the paths in URLs. This package does not deal with Windows paths with drive letters or backslashes; to manipulate operating system paths, use the path/filepath package.

One of the VSCode tools also set the kingpin import name.

Signed-off-by: Matt Layher <mdlayher@gmail.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ SuperQ merged commit 3b5c2f6 into master Jan 21, 2019
@SuperQ SuperQ deleted the mdl-collector-filepath branch January 21, 2019 16:44
pgier added a commit to pgier/node_exporter that referenced this pull request Jan 30, 2019
Similar to prometheus#1228.  Update the remaining collectors to use
'path/filepath' intead of 'path' for manipulating file paths.

Signed-off-by: Paul Gier <pgier@redhat.com>
SuperQ pushed a commit that referenced this pull request Feb 5, 2019
Similar to #1228.  Update the remaining collectors to use
'path/filepath' intead of 'path' for manipulating file paths.

Signed-off-by: Paul Gier <pgier@redhat.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Signed-off-by: Matt Layher <mdlayher@gmail.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Similar to prometheus#1228.  Update the remaining collectors to use
'path/filepath' intead of 'path' for manipulating file paths.

Signed-off-by: Paul Gier <pgier@redhat.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Signed-off-by: Matt Layher <mdlayher@gmail.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
Similar to prometheus#1228.  Update the remaining collectors to use
'path/filepath' intead of 'path' for manipulating file paths.

Signed-off-by: Paul Gier <pgier@redhat.com>
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.

2 participants