Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b9efd1f4
Commit
b9efd1f4
authored
May 07, 2018
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workspace mirror: add trailing newline to urls list
parent
8bf47d72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
workspace_mirror.bzl
build/workspace_mirror.bzl
+5
-1
update-workspace-mirror.sh
hack/update-workspace-mirror.sh
+1
-1
No files found.
build/workspace_mirror.bzl
View file @
b9efd1f4
...
...
@@ -39,7 +39,11 @@ def export_urls_impl(repo_ctx):
repo_ctx.file(repo_ctx.path("BUILD.bazel"), """
exports_files(glob(["**"]), visibility=["//visibility:public"])
""")
repo_ctx.file(repo_ctx.path("urls.txt"), content = "\n".join(repo_ctx.attr.urls))
repo_ctx.file(
repo_ctx.path("urls.txt"),
# Add a trailing newline, since the "while read" loop needs it
content = ("\n".join(repo_ctx.attr.urls) + "\n"),
)
_export_urls = repository_rule(
attrs = {
...
...
hack/update-workspace-mirror.sh
View file @
b9efd1f4
...
...
@@ -19,7 +19,7 @@ set -o nounset
set
-o
pipefail
if
[[
$#
-ne
1
]]
;
then
echo
'use "bazel run //
build
:update-mirror"'
echo
'use "bazel run //
hack
:update-mirror"'
echo
"(usage:
$0
<file with list of URLs to mirror>)"
exit
1
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment