Skip to content

Commit 8af47e9

Browse files
committed
Add comment about how r_version is determined
1 parent 28035d6 commit 8af47e9

File tree

1 file changed

+2
-0
lines changed
  • repo2docker/buildpacks

1 file changed

+2
-0
lines changed

repo2docker/buildpacks/r.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def r_version(self):
7979

8080
if not hasattr(self, "_r_version"):
8181
parts = self.runtime.split("-")
82+
# If runtime.txt is not set, or if it isn't of the form r-<version>-<yyyy>-<mm>-<dd>,
83+
# we don't use any of it in determining r version and just use the default
8284
if len(parts) == 5:
8385
r_version = parts[1]
8486
# For versions of form x.y, we want to explicitly provide x.y.z - latest patchlevel

0 commit comments

Comments
 (0)