Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Make the output of the requirement file generator determinable #97

Merged
merged 1 commit into from
Jul 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make the output of the requirement file generator determinable
When I recompile the api the order of the generated requirements
almost always change. Over time someone would have probably accidentally
committed a reorder, ending in useless commits. A fix for this is to
order all input files, which will always result in the same output.
  • Loading branch information
hlxid committed Jul 23, 2019
commit 043af2086daf51f526732f91e26f0c30821bb2af
1 change: 1 addition & 0 deletions project/APIUtility.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class APIUtility(logger: ManagedLogger) {
}
}
}.filter(_.isDefined).map(_.get)
.sortBy(x => x.file.getAbsolutePath)

RequirementsFile(new File(sourceDirectory, configurationFolder), "Input", filesWithRequirements.head).createFile()
RequirementsFile(new File(sourceDirectory, configurationFolder), "Output", filesWithRequirements(1)).createFile()
Expand Down