Skip to content

Commit

Permalink
Little fixes to stop lint warnings (#783)
Browse files Browse the repository at this point in the history
* Fix some typos, some missing loads and buildifier warnings.
  • Loading branch information
aiuto authored Nov 13, 2023
1 parent 9dd0c8c commit 988ebe8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/private/deb/deb.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pkg_deb_impl = rule(
Create a Debian package.
This rule produces 2 artifacts: a .deb and a .changes file. The DefaultInfo will
include both. If you need downstream rule to specificially depend on only the .deb or
include both. If you need downstream rule to specifically depend on only the .deb or
.changes file then you can use `filegroup` to select distinct output groups.
**OutputGroupInfo**
Expand Down
3 changes: 1 addition & 2 deletions pkg/private/pkg_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _process_pkg_symlink(mapping_context, pkg_symlink_info, origin):
link_to = pkg_symlink_info.target,
)

def _process_pkg_filegroup(mapping_context, pkg_filegroup_info, origin):
def _process_pkg_filegroup(mapping_context, pkg_filegroup_info):
if hasattr(pkg_filegroup_info, "pkg_dirs"):
for d in pkg_filegroup_info.pkg_dirs:
_process_pkg_dirs(mapping_context, d[0], d[1])
Expand Down Expand Up @@ -267,7 +267,6 @@ def process_src(mapping_context, src, origin):
_process_pkg_filegroup(
mapping_context,
src[PackageFilegroupInfo],
origin,
)
found_info = True
if PackageSymlinkInfo in src:
Expand Down
4 changes: 4 additions & 0 deletions pkg/private/tar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ All interfaces are subject to change at any time.

load("@rules_python//python:defs.bzl", "py_binary", "py_library")

package(
default_applicable_licenses = ["//:license"],
)

licenses(["notice"])

filegroup(
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpm_pfg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ pkg_rpm = rule(
Is the equivalent to `%config(missingok, noreplace)` in the `%files` list.
This rule produces 2 artifacts: an .rpm and a .changes file. The DefaultInfo will
include both. If you need downstream rule to specificially depend on only the .rpm or
include both. If you need downstream rule to specifically depend on only the .rpm or
.changes file then you can use `filegroup` to select distinct output groups.
**OutputGroupInfo**
Expand Down
4 changes: 2 additions & 2 deletions tests/tar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# -*- coding: utf-8 -*-
"""Tests for pkg_tar."""

load("@rules_python//python:defs.bzl", "py_test")
load("@rules_python//python:defs.bzl", "py_binary", "py_test")

# buildifier: disable=bzl-visibility
load("//pkg:mappings.bzl", "pkg_attributes", "pkg_files", "pkg_mkdirs", "pkg_mklink")
Expand Down Expand Up @@ -577,7 +577,7 @@ pkg_tar(
symlinks = {
# We expect package_dir to apply to this
"tree_artifact/toss_in_another": "some_target",
# But we protect the user from duplicationg package_dir in their
# But we protect the user from duplicating package_dir in their
# link. That was the old behavior of symlink.
"new/base/something/this": "that",
},
Expand Down

0 comments on commit 988ebe8

Please sign in to comment.