Skip to content

Commit

Permalink
Use path not filepath for package parents
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed May 2, 2024
1 parent 5734512 commit 61acb45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/gazelle/javaconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package javaconfig

import (
"fmt"
"path"
"path/filepath"
"strings"

Expand Down Expand Up @@ -78,7 +79,7 @@ func (c *Config) NewChild() *Config {

// ParentForPackage returns the parent Config for the given Bazel package.
func (c *Configs) ParentForPackage(pkg string) *Config {
dir := filepath.Dir(pkg)
dir := path.Dir(pkg)
if dir == "." {
dir = ""
}
Expand Down

0 comments on commit 61acb45

Please sign in to comment.