Skip to content

Releases: martis42/depend_on_what_you_use

0.0.6

04 Feb 23:02
Compare
Choose a tag to compare

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "ed70dcb0376ac1d0a6bb861e28077531e5c432ee983db419931d422db02dd31c",
    strip_prefix = "depend_on_what_you_use-0.0.6",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.6.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

Breaking Changes

  • Use re.match(pattern, include) for ignored include patterns by @storypku in #77
  • Naming: change all uses of "deps_info" to "headers_info" by @storypku in #90

Noteworthy Changes

  • Unified target label naming for DWYU-generated files by @storypku in #78
  • analyze_includes: add repr method for some classes to help debugging by @storypku in #82
  • Support more cases of commented code by @storypku in #87
  • Ensure implementation deps is only used on cc library by @martis42 in #94
  • Handle the case where neither public-files nor private-files are present by @storypku in #96
  • Improve support for resolving relative include statements @martis42 in #97 and #98

Full Changelog: 0.0.5...0.0.6

0.0.5

05 Dec 20:55
Compare
Choose a tag to compare

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "787df8d7156d5cce3e66fee1b7c68474218bf8658ccca74851c5b1c50e76bd14",
    strip_prefix = "depend_on_what_you_use-0.0.5",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.5.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

Breaking Changes

  • Changing format of report files to prepare for more automatic fixing features in #65
  • Changing aspect config files for configuring to be ignored include paths #67
    • There are now separate fields for to be ignored include paths and to be ignored patterns
    • Config entries are optional
    • An empty ignore_include_paths entry will disable ignoring standard library headers

Noteworthy Changes

  • Fixing a bug for excluding include paths from the DWYU analysis #67

Full Changelog: 0.0.4...0.0.5

0.0.4

02 Nov 21:44
Compare
Choose a tag to compare

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "7ab6b0429d569e236b37bf2f7b8baddd574a06f685e5bcdf438cac28f95c9316",
    strip_prefix = "depend_on_what_you_use-0.0.4",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.4.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

Breaking Changes

  • Changing format of report files to facilitate automatic fixing in #58

Noteworthy Changes

  • Automatix fixing supports private deps #58
  • Provide automatic fix for public deps which should be private #59
  • Automatic Fixing: Allow setting custom arguments for buildozer #60

Full Changelog: 0.0.3...0.0.4

0.0.3

04 Oct 21:55
Compare
Choose a tag to compare

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "0f7a8786f4fb56d45ac18e12681c3bc5ed7dc63d4027e0e14514a968a7368b1f",
    strip_prefix = "depend_on_what_you_use-0.0.3",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.3.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

Breaking Changes

Drop support for interface_deps. This feature has been removed again from Bazel 6. #55.

Full Changelog: 0.0.2...0.0.3

0.0.2

11 Jul 21:34
Compare
Choose a tag to compare

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "81c990e1d3722e20842e203e0c9da99e25993563f025897dda900561564b91b7",
    strip_prefix = "depend_on_what_you_use-0.0.2",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.2.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

What's Changed

Noteworthy Changes

  • Support checking Bazel 6 interface deps #37
  • Fix bug in json report file generation #41
  • Define the minimum Python version as 3.6 #43
  • Allow ignoring include statements with regex patterns #50
  • Apply fixes warns if a fix could not be performed and provides hints about possible problems #51

Breaking Changes

New CLI interface for the apply_fixes script #47

  • Automatically detect the workspace root if no workspace is specified
  • Allow using the convenience symlinks to find the bazel-bin dir. This is now the default behavior. Utilizing bazel info comand to find the bazel-bin directory can be chosen via an opt-in.
  • If using bazel info to to discover the bazel-bin directory, one can choose the compilation mode.
  • Allow providing the bazel-bin directory directly
  • Fail if no DWYU report files can be discovered

New Contributors

Full Changelog: 0.0.1...0.0.2

0.0.1

28 Apr 20:53
Compare
Choose a tag to compare

The first proper release 🎉

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "05e8fdd0adbb481908db628a7e60120377b5bd3055e01cfad7ad4550c05114ac",
    strip_prefix = "depend_on_what_you_use-0.0.1",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.1.tar.gz",
)

load("@depend_on_what_you_use//:dependencies.bzl", dwyu_dependencies = "public_dependencies")

dwyu_dependencies()

New Contributors

Full Changelog: 0.0.1-alpha-2...0.0.1

0.0.1-alpha-2

10 Mar 21:47
Compare
Choose a tag to compare
0.0.1-alpha-2 Pre-release
Pre-release

Put the following into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "depend_on_what_you_use",
    sha256 = "161916282907f3a241f7ccd264ed10ae752cc61771af2f1d99dac745cea84157",
    strip_prefix = "depend_on_what_you_use-0.0.1-alpha-2",
    url = "https://github.com/martis42/depend_on_what_you_use/archive/refs/tags/0.0.1-alpha-2.tar.gz",
)