Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let stable packages bypass LF version restrictions. #10377

Merged
merged 16 commits into from
Jul 27, 2021
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ import com.daml.nameof.NameOf
*
* This class is thread safe as long `nextRandomInt` is.
*/
class Engine(
val config: EngineConfig = new EngineConfig(LanguageVersion.StableVersions)
) {
class Engine(val config: EngineConfig = new EngineConfig(LanguageVersion.StableVersions)) {
sofiafaro-da marked this conversation as resolved.
Show resolved Hide resolved

config.profileDir.foreach(Files.createDirectories(_))

Expand Down Expand Up @@ -516,9 +514,7 @@ object Engine {
}
}

def DevEngine(): Engine = new Engine(
new EngineConfig(LanguageVersion.DevVersions)
)
def DevEngine(): Engine = new Engine(new EngineConfig(LanguageVersion.DevVersions))

def StableEngine(): Engine = new Engine()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package engine
import java.nio.file.Path

import com.daml.lf.transaction.ContractKeyUniquenessMode
import com.daml.lf.language.LanguageVersion

/** The Engine configurations describes the versions of language and
* transaction the engine is allowed to read and write together with
Expand All @@ -25,7 +24,7 @@ import com.daml.lf.language.LanguageVersion
* disabled if the option is empty.
*/
final case class EngineConfig(
allowedLanguageVersions: VersionRange[LanguageVersion],
allowedLanguageVersions: VersionRange[language.LanguageVersion],
packageValidation: Boolean = true,
stackTraceMode: Boolean = false,
profileDir: Option[Path] = None,
Expand Down