Updated the k build target to not use the cache.
This commit is contained in:
parent
00de03d641
commit
050aeb12c7
|
|
@ -18,7 +18,7 @@ prefetch='true'
|
|||
|
||||
default prefetch='${true}'
|
||||
|
||||
nuget-install package='ProjectK' outputDir='packages' extra='-pre' once='ProjectK-NuGet' if='prefetch'
|
||||
nuget-install package='ProjectK' outputDir='packages' extra='-pre -nocache' once='ProjectK-NuGet' if='prefetch'
|
||||
|
||||
@{
|
||||
Func<string, long> getVersion = version => {
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}'
|
|||
{
|
||||
foreach (string fileName in templateFiles)
|
||||
{
|
||||
var targetFile = Path.Combine(repo.Key, fileName);
|
||||
var sourceFile = Path.Combine(templatePath, fileName);
|
||||
var targetFile = Path.Combine(Directory.GetCurrentDirectory(), repo.Key, fileName);
|
||||
var sourceFile = Path.Combine(Directory.GetCurrentDirectory(), templatePath, fileName);
|
||||
|
||||
// Don't update the makefile
|
||||
if(fileName.Equals("makefile.shake", StringComparison.OrdinalIgnoreCase) && File.Exists(targetFile))
|
||||
|
|
@ -79,7 +79,7 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts", "build")}'
|
|||
continue;
|
||||
}
|
||||
|
||||
if(!File.Exists(targetFile) ||
|
||||
if(!File.Exists(sourceFile) ||
|
||||
(File.ReadAllText(sourceFile) != File.ReadAllText(targetFile)))
|
||||
{
|
||||
Log.Info("Updating " + fileName + " to " + repo.Key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue