27 Commits

Author SHA1 Message Date
Markus Reiter
480e264d9a
Lint Ruby docs. 2024-05-01 11:35:21 +02:00
Markus Reiter
caf87c0336
Warn about undocumented non-private APIs. 2024-05-01 11:35:20 +02:00
Markus Reiter
c76170a456
Hide #to_s in docs. 2024-04-26 14:04:55 +02:00
Douglas Eichelberger
24cf6076e8 brew style --fix 2023-04-24 20:42:39 -07:00
Douglas Eichelberger
adfd12cfd0 Enable more typing 2023-03-21 21:42:51 -07:00
Lukas Oberhuber
0cf11f4089 fix debug-symbols
Incorrectly named variable meant existing directory is never removed
so new directory can't be copied in.
2022-08-13 23:30:20 -10:00
Lukas Oberhuber
d6067418c1 Fix tmpdir take 2 2022-08-05 17:00:54 -07:00
Lukas Oberhuber
47bf7b8a8a Fix source cache directory creation 2022-08-05 16:18:20 -07:00
Lukas Oberhuber
936d363c44
Style
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-05 16:12:39 -07:00
Lukas Oberhuber
2ce58f9fcb fix removing of previous source 2022-08-04 08:52:49 -07:00
Lukas Oberhuber
60831da3b8 DRY up formula prefix 2022-08-02 09:06:28 -07:00
Lukas Oberhuber
07e299760a
mktemp: use "present?" instead of '!nil?"
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-02 08:33:40 -07:00
Lukas Oberhuber
676e3d4923 Change name of option on mktemp
From retain_in_sources to retain_in_cache
2022-08-01 18:30:14 -07:00
Lukas Oberhuber
41a5265466 Improve messaging of debug source location 2022-07-31 21:06:33 +01:00
Lukas Oberhuber
93132c6876 Always put source files in the same directory
There's no point in saving old ones because the debug symbols will only
for the newest bulid anyway.

Currently blows away what was there before, which isn't ideal for a dev
workflow. Maybe that should be changed, given a tar file should be a tar
file, so shouldn't change. But there are many different types of files.
2022-07-31 20:54:14 +01:00
Lukas Oberhuber
8b1eb32e99 Sources now retained in Caches/Homebrew/Sources
Full path is ~/Library/Caches/Homebrew/Sources

This creates a brand new directory for each build, but leaves previous.
2022-07-31 20:33:25 +01:00
fn ⌃ ⌥
95e406174d
mktemp: delete invalid default prefix argument 2021-10-06 11:05:02 -07:00
Mike McQuaid
fd251c9109
github_packages: fix versioned bottle names.
`@` cannot be used in Docker image names. Use `/` instead (which we
already use in image names so has some precedent).

Make `mktemp` use `AT` (consistent with `Formula` subclasses), too.
2021-04-06 19:14:08 +01:00
Bo Anderson
a6e7858cbc
mktemp: handle dirs with restricted permissions 2021-03-29 11:53:03 +01:00
EricFromCanada
571179ff0e pass second argument to ohai when applicable 2021-01-26 15:36:43 -05:00
Francois-Xavier Coudert
b6447120ae mktemp: avoid directories with @ 2020-12-28 12:14:11 +01:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
abf3043125 formula: move mktemp.
This should be an instance rather than a class method.
2018-07-14 15:41:16 +01:00
Mike McQuaid
0a76c9f02e mktemp: move to Formula and compat.
Move this method away from FileUtils as it doesn't need to be on that
class.
2018-07-13 14:42:49 +01:00