Lines Matching full:netrc
35 in the netrc file for the same host name. After formatting, the result is set
38 Example attribute and netrc for a http download to an oauth2 enabled API using a bearer token:
46 netrc:
65 "netrc": attr.string(
66 doc = "Location of the .netrc file to use for authentication",
71 …"""Utility for retrieving netrc-based authentication parameters for repository download rules used…
77 ctx_attr(struct): The attributes to get the netrc from. When ctx is
91 netrc = getattr(ctx_attr, "netrc", None),
95 if ctx_attr.netrc:
96 netrc = read_netrc(ctx, ctx_attr.netrc)
97 elif "NETRC" in ctx.os.environ:
100 netrc = read_netrc(ctx, ctx.getenv("NETRC"))
102 netrc = read_netrc(ctx, ctx.os.environ["NETRC"])
104 netrc = read_user_netrc(ctx)
106 return use_netrc(netrc, urls, ctx_attr.auth_patterns)