Code Monkey home page Code Monkey logo

Comments (9)

TheAngryByrd avatar TheAngryByrd commented on July 17, 2024 1

so I added to build.cake
#addin "YamlDotNet"
and to tools/packages.config
<package id="YamlDotNet" version="4.2.1" />

Seems to give work around. Stupid binding redirect nonsense.

from packertemplates.

johnrizzo1 avatar johnrizzo1 commented on July 17, 2024

same issue here. You come up with a fix?

from packertemplates.

TheAngryByrd avatar TheAngryByrd commented on July 17, 2024

Yeah I added YamlDotNet as a reference to cake then modified the packages.config under tools to pin to 4.2.1

Cake should use paket 😊 but that's another topic.

from packertemplates.

johnrizzo1 avatar johnrizzo1 commented on July 17, 2024

Thank you. I've basically merged your changes as well as those in Pull Request 10 and 12. I'd love to continue to contribute to the project as well. I'm going to continue to develop the project in my fork for now. johnrizzo1/PackerTemplates. I'll push my work shortly.

from packertemplates.

johnrizzo1 avatar johnrizzo1 commented on July 17, 2024

@TheAngryByrd can you post your build.supported_os.yaml?

from packertemplates.

TheAngryByrd avatar TheAngryByrd commented on July 17, 2024

It's just the yaml from the initial clone.

---
- Name: Windows2012R2Core
  osName: win2012r2core
  guestOSType: Windows2012_64
  isoURL: http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
  isoChecksum: 849734f37346385dac2c101e4aacba4626bb141c
- Name: Windows2012R2
  osName: win2012r2
  guestOSType: Windows2012_64
  isoChecksum: 849734f37346385dac2c101e4aacba4626bb141c
  isoURL: http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
- Name: Windows2016StdCore
  osName: win2016stdcore
  guestOSType: Windows2012_64
  isoChecksum: 3bb1c60417e9aeb3f4ce0eb02189c0c84a1c6691
  isoURL: http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
- Name: Windows2016
  osName: win2016std
  guestOSType: Windows2012_64
  isoChecksum: 3bb1c60417e9aeb3f4ce0eb02189c0c84a1c6691
  isoURL: http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
# - Name: Windows10
#   osName: win10
#   guestOSType: Windows10_64
#   isoChecksum: 56ab095075be28a90bc0b510835280975c6bb2ce
#   isoURL: http://care.dlservice.microsoft.com/dl/download/C/3/9/C399EEA8-135D-4207-92C9-6AAB3259F6EF/10240.16384.150709-1700.TH1_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO

from packertemplates.

johnrizzo1 avatar johnrizzo1 commented on July 17, 2024

Odd. Mine is the same but I get this error...

❯ ./build.ps1
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing addins...
Compiling build script...
Error: One or more errors occurred.
Your yaml is invalid.

I added in some debugging and I get this output

YAML path ./build.supported_os.yaml OS Windows2016StdCore - Matched OS

Here are my changes to add some debugging.

public OSToBuild LoadYAMLConfig(string yaml_path, string os)
{
    //OSToBuild os_to_build_properties;
    string matchedOs = "";

    try
    {
        var oses = DeserializeYamlFromFile<List<OSToBuild>> (yaml_path);

        // check if the OS the user passed exists
        bool matchingOS = oses.Any(n => n.Name == os);
        Information("oses: " + oses);
        if (matchingOS == true)
        {
            // return the matching os to build
            return oses.Where(n => n.Name == os).First();
        }
        else
        {
            string exceptionMsg = String.Format("Could not find a matching operating system in {0}. You passed in: {1}", yaml_path, os);
            throw new System.ArgumentException(exceptionMsg);
        }
    }
    catch
    {
      string msg = String.Format("Your yaml is invalid. YAML path {0} OS {1} - Matched OS {2}", yaml_path, os, matchedOs);
      throw new System.ArgumentException(msg);
    }
}

from packertemplates.

johnrizzo1 avatar johnrizzo1 commented on July 17, 2024

Thanks... That worked. Again, I'll add this to my repo so that it is all captured somewhere.

from packertemplates.

MattHodge avatar MattHodge commented on July 17, 2024

I have added this fix (8ca65c4) to the repo, thanks @TheAngryByrd

from packertemplates.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.