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
Default docker config #690
Conversation
Still needs some cleaning up and Hydra stuff |
Also currently only works with detached HEAD, I need to add something like
for when you are on a branch |
ff1825c
to
2323b51
Compare
One more issue, this is not working on Hydra, I think because |
* They need a default playground.yaml * we can now mount a local playground.yaml * fix --version flag by having nix generate a patch for Git.hs * fix the tutorial link on the playground; it will point to the current revision if built with nix and will default to point to master if built with cabal or stack
2323b51
to
4cb5de1
Compare
, Tuple "Tutorial" "https://github.com/input-output-hk/plutus/blob/master/plutus-tutorial/tutorial/Tutorial/02-wallet-api.md" | ||
, Tuple "API" "https://input-output-hk.github.io/plutus/" | ||
links = [ -- Tuple "Getting Started" "https://testnet.iohkdev.io/plutus/get-started/writing-contracts-in-plutus/" | ||
-- , Tuple "Tutorial" $ "https://github.com/input-output-hk/plutus/blob/" <> gitHead <> "/plutus-tutorial/tutorial/Tutorial/02-wallet-api.md" |
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.
Why commented out?
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.
These links are incorrect, I wanted them left to signify that they should be fixed. I will open an issue for this.
{-# LANGUAGE RecordWildCards #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
{-# LANGUAGE TypeOperators #-} | ||
{-# OPTIONS_GHC -Wno-orphans #-} |
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 right here is why I'm not a fan of stylish Haskell.
Can't change it, but it's an apt time to (re)moan.
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.
agreed
module Git where | ||
|
||
gitHead :: String | ||
gitHead = "master" |
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.
Yerwhat? :-D
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.
I'm a monster
|
||
gitHead :: String | ||
-gitHead = "master" | ||
+gitHead = "${git-rev}" |
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.
Ah, I see. You're a monster.
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.
its true
Can you put in some comments explaining how the git stuff works since it's not that obvious how it all fits together. |
will do @michaelpj |
revision if built with nix and will default to point to master
if built with cabal or stack