Giter Club home page Giter Club logo

Comments (3)

RamblingCookieMonster avatar RamblingCookieMonster commented on June 29, 2024 1

Oy I'm terribly sorry, this was a dependency resolution issue. Something else was depending on 0.3.4 explicitly before 0.3.7 was used. Closing this out - thanks for pointing me in the right direction!

from powershell-yaml.

gabriel-samfira avatar gabriel-samfira commented on June 29, 2024

Hi @RamblingCookieMonster

In my tests, I get the following:

PS /home/gabriel> install-module powershell-yaml -Scope CurrentUser

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by
running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
PS /home/gabriel>
PS /home/gabriel> Import-Module powershell-yaml
PS /home/gabriel> (get-module powershell-yaml).path
/home/gabriel/.local/share/powershell/Modules/powershell-yaml/0.3.7/powershell-yaml.psm1
PS /home/gabriel> $yaml = @"
>> anArray:
>> - 1
>> - 2
>> - 3
>> nested:
>>   array:
>>   - this
>>   - is
>>   - an
>>   - array
>> hello: world
>> "@
PS /home/gabriel> ConvertFrom-Yaml -Yaml $yaml

Name                           Value
----                           -----
nested                         {array}
anArray                        {1, 2, 3}
hello                          world

Do you by any chance have the YamlDotNet assemblies already installed on your system? If so, which version?

from powershell-yaml.

gabriel-samfira avatar gabriel-samfira commented on June 29, 2024

Easy way to find out, in a new terminal, type in:

PS> [YamlDotNet.Serialization.Serializer].Assembly.FullName
PS> [YamlDotNet.Serialization.Serializer].Assembly.location

from powershell-yaml.

Related Issues (20)

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.