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

Add extensible metadata into Setup #37

Merged
merged 3 commits into from
Dec 22, 2015
Merged

Add extensible metadata into Setup #37

merged 3 commits into from
Dec 22, 2015

Conversation

eed3si9n
Copy link
Member

Setup now contains an array of (String, String):

        {
          "name": "extra",
          "type": "xsbti.T2<String, String>*"
         }

This can be used to invalidate previous analysis for various purposes including sbt version changes.

/review @Duhemm, @dwijnand

def equiv(a: Array[T2[String, String]], b: Array[T2[String, String]]): Boolean =
((a.toList filter { x => !(x.get1 startsWith "info.") }) sameElements
(b.toList filter { x => !(x.get1 startsWith "info.") }))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two extras are considered equivalent if they have the same mapping for all keys that do not start with info.?
So the two following extras are equivalent?

val e1 = Array(("info.foo", "foo"))
val e2 = Array(("info.foo", "bar"), ("info.baz", "hello"))

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the metadata is not equivalent we will invalidate the previous compilation result, but there might be a situation where we would like to track some information without invalidating the previous.

@Duhemm
Copy link
Contributor

Duhemm commented Dec 22, 2015

LGTM

eed3si9n added a commit that referenced this pull request Dec 22, 2015
Add extensible metadata into Setup
@eed3si9n eed3si9n merged commit 5f6b3db into 1.0 Dec 22, 2015
@eed3si9n eed3si9n deleted the wip/metadata branch December 22, 2015 10:08
dwijnand pushed a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
Run scripted tests in the alphabetical order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants