-
Notifications
You must be signed in to change notification settings - Fork 7
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
Towards Auto API #336
Towards Auto API #336
Conversation
b0395f0
to
b6cd805
Compare
5233c56
to
9d83209
Compare
d09c590
to
9d85da6
Compare
9d85da6
to
aa6dab0
Compare
) | ||
)(_ => block).toEither.left.map(AutoError("Failed to watch a path", _)) | ||
|
||
case class Tailer2(path: os.Path, onLine: String => Unit): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME: attempt two at writing a tailer
|
||
end pulumi | ||
|
||
object Tailer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME: attempt one at creating a tailer
* | ||
* For self-managed backends, the `org` portion of the stack name must always be the constant value `organization`. | ||
*/ | ||
opaque type StackName <: String = String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be reused in core in stack references
* | ||
* See: https://github.com/pulumi/pulumi/issues/2522 | ||
*/ | ||
opaque type FullyQualifiedStackName <: StackName = StackName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be reused in core in stack references
import scala.language.implicitConversions | ||
|
||
/** Name is an identifier. */ | ||
opaque type Name <: String = String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be useful in core and codegen, but would require a separate module, just for model stuff
package besom.model | ||
|
||
// TODO: move to separate module | ||
// NOTICE: keep in sync with codegen/src/model/SemanticVersion.scala |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we don't have a separate model module this was duplicated
import org.virtuslab.yaml.internal.load.parse.EventKind._ | ||
import org.virtuslab.yaml.internal.dump.serialize.Serializer | ||
|
||
object HackedSerializerImpl extends Serializer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME: this needs to be fixed upstream
|
||
private def convertMappingNode(node: Node.MappingNode): Seq[EventKind] = { | ||
val events = node.mappings.toSeq.flatMap { | ||
case (_, Node.ScalarNode(null, _)) => Seq.empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the actual change AFAIR, handling null's
@@ -1,6 +1,6 @@ | |||
//> using scala "3.3.1" | |||
//> using options "-java-output-version:11", "-Ysafe-init", "-Xmax-inlines:64" | |||
//> using options "-Werror", "-Wunused:all", "-deprecation", "-feature" | |||
//> using options "-Werror", "-Wunused:all", "-deprecation", "-feature", "-Wconf:cat=deprecation:i" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the magic Wconf
ignores deprecation warnings from protobuf so the Werror
does not blow up
@@ -56,11 +56,6 @@ object Env: | |||
private[internal] def getConfigSecretKeys(key: String): Try[Set[NonEmptyString]] = | |||
Try { sys.env.get(key).map(_.parseJson.convertTo[Set[NonEmptyString]]).getOrElse(Set.empty) } | |||
|
|||
private[internal] def isTruthy(s: String): Boolean = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to util for reuse
83d645d
to
d2e9941
Compare
d2e9941
to
1de6d41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm fn
This reverts commit bffe990.
Part of #254
Goal: 90% of MVP
The scope:
Out of scope:
API surface missing, notable details: